< prev index next >

src/share/vm/gc_implementation/g1/g1CodeCacheRemSet.cpp

Print this page

        

@@ -203,11 +203,13 @@
 CodeRootSetTable* G1CodeRootSet::load_acquire_table() {
   return (CodeRootSetTable*) OrderAccess::load_ptr_acquire(&_table);
 }
 
 void G1CodeRootSet::allocate_small_table() {
-  _table = new CodeRootSetTable(SmallSize);
+  CodeRootSetTable* temp = new CodeRootSetTable(SmallSize);
+
+  OrderAccess::release_store_ptr(&_table, temp);
 }
 
 void CodeRootSetTable::purge_list_append(CodeRootSetTable* table) {
   for (;;) {
     table->_purge_next = _purge_list;
< prev index next >