comparison src/share/vm/runtime/sharedRuntime.cpp @ 845:df6caf649ff7

6700789: G1: Enable use of compressed oops with G1 heaps Summary: Modifications to G1 so as to allow the use of compressed oops. Reviewed-by: apetrusenko, coleenp, jmasa, kvn, never, phh, tonyp
author ysr
date Tue, 14 Jul 2009 15:40:39 -0700
parents 45463a04ca27
children e66fd840cb6b
comparison
equal deleted inserted replaced
839:bb18957ad21e 845:df6caf649ff7
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.