8214840: runtime/NMT/MallocStressTest.java timed out
Add volatile to declaration of static field shared by multiple threads Reviewed-by: dcubed, dholmes, coleenp
This commit is contained in:
parent
37f135132e
commit
a4a38e6f44
@ -57,21 +57,19 @@ public class MallocStressTest {
|
||||
release
|
||||
};
|
||||
|
||||
static TestPhase phase = TestPhase.alloc;
|
||||
static volatile TestPhase phase = TestPhase.alloc;
|
||||
|
||||
// malloc'd memory
|
||||
static ArrayList<MallocMemory> mallocd_memory = new ArrayList<MallocMemory>();
|
||||
static final ArrayList<MallocMemory> mallocd_memory = new ArrayList<MallocMemory>();
|
||||
static long mallocd_total = 0;
|
||||
static WhiteBox whiteBox;
|
||||
static AtomicInteger pause_count = new AtomicInteger();
|
||||
|
||||
static boolean is_64_bit_system;
|
||||
static final boolean is_64_bit_system = Platform.is64bit();
|
||||
|
||||
private static boolean is_64_bit_system() { return is_64_bit_system; }
|
||||
|
||||
public static void main(String args[]) throws Exception {
|
||||
is_64_bit_system = (Platform.is64bit());
|
||||
|
||||
OutputAnalyzer output;
|
||||
whiteBox = WhiteBox.getWhiteBox();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user