hotspot/src/share/vm/runtime/sharedRuntime.cpp
changeset 3262 30d1c247fc25
parent 2732 3ab85419f523
child 4564 55dfb20908d0
equal deleted inserted replaced
3192:607a56c8880f 3262:30d1c247fc25
   117 JRT_LEAF(void, SharedRuntime::g1_wb_pre(oopDesc* orig, JavaThread *thread))
   117 JRT_LEAF(void, SharedRuntime::g1_wb_pre(oopDesc* orig, JavaThread *thread))
   118   if (orig == NULL) {
   118   if (orig == NULL) {
   119     assert(false, "should be optimized out");
   119     assert(false, "should be optimized out");
   120     return;
   120     return;
   121   }
   121   }
       
   122   assert(orig->is_oop(true /* ignore mark word */), "Error");
   122   // store the original value that was in the field reference
   123   // store the original value that was in the field reference
   123   thread->satb_mark_queue().enqueue(orig);
   124   thread->satb_mark_queue().enqueue(orig);
   124 JRT_END
   125 JRT_END
   125 
   126 
   126 // G1 write-barrier post: executed after a pointer store.
   127 // G1 write-barrier post: executed after a pointer store.