< prev index next >

src/share/vm/gc/serial/defNewGeneration.hpp

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

@@ -223,11 +223,11 @@
 
   size_t max_eden_size() const              { return _max_eden_size; }
   size_t max_survivor_size() const          { return _max_survivor_size; }
 
   bool supports_inline_contig_alloc() const { return true; }
-  HeapWord** top_addr() const;
+  HeapWord* volatile* top_addr() const;
   HeapWord** end_addr() const;
 
   // Thread-local allocation buffers
   bool supports_tlab_allocation() const { return true; }
   size_t tlab_capacity() const;
< prev index next >