From 47df5490dd4552786cdabdab6ed8e208a19d6686 Mon Sep 17 00:00:00 2001 From: rgudwin Date: Mon, 15 Apr 2024 11:25:11 -0300 Subject: [PATCH] trying to solve problem --- .../java/br/unicamp/cst/core/entities/MemoryContainer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/br/unicamp/cst/core/entities/MemoryContainer.java b/src/main/java/br/unicamp/cst/core/entities/MemoryContainer.java index 8c2e54cf..0cf91ebc 100755 --- a/src/main/java/br/unicamp/cst/core/entities/MemoryContainer.java +++ b/src/main/java/br/unicamp/cst/core/entities/MemoryContainer.java @@ -53,8 +53,8 @@ public enum Policy {MAX, MIN, RANDOM_FLAT, RANDOM_PROPORTIONAL, ITERATE}; */ private Policy policy; - private Memory last; - private int lasti=0; + private volatile Memory last; + private volatile int lasti=0; private Random rand = new Random(); /**