< prev index next >

src/share/vm/jvmci/jvmciCompilerToVM.hpp

Print this page
rev 10742 : Make fields used in lock-free algorithms volatile

@@ -56,13 +56,13 @@
     static uintptr_t Universe_verify_oop_bits;
     static void* Universe_non_oop_bits;
 
     static bool _supports_inline_contig_alloc;
     static HeapWord** _heap_end_addr;
-    static HeapWord** _heap_top_addr;
+    static HeapWord* volatile* _heap_top_addr;
 
-    static jbyte* cardtable_start_address;
+    static volatile jbyte* cardtable_start_address;
     static int cardtable_shift;
 
     static int vm_page_size;
 
    public:
< prev index next >