comparison src/share/vm/runtime/sharedRuntime.cpp @ 342:37f87013dfd8

6711316: Open source the Garbage-First garbage collector Summary: First mercurial integration of the code for the Garbage-First garbage collector. Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
author ysr
date Thu, 05 Jun 2008 15:57:56 -0700
parents a76240c8b133
children 1ee8caae33af
comparison
equal deleted inserted replaced
189:0b27f3512f9e 342:37f87013dfd8
108 } 108 }
109 tty->print_cr ("Total IC misses: %7d", tot_misses); 109 tty->print_cr ("Total IC misses: %7d", tot_misses);
110 } 110 }
111 } 111 }
112 #endif // PRODUCT 112 #endif // PRODUCT
113
114 #ifndef SERIALGC
115
116 // G1 write-barrier pre: executed before a pointer store.
117 JRT_LEAF(void, SharedRuntime::g1_wb_pre(oopDesc* orig, JavaThread *thread))
118 if (orig == NULL) {
119 assert(false, "should be optimized out");
120 return;
121 }
122 // store the original value that was in the field reference
123 thread->satb_mark_queue().enqueue(orig);
124 JRT_END
125
126 // G1 write-barrier post: executed after a pointer store.
127 JRT_LEAF(void, SharedRuntime::g1_wb_post(void* card_addr, JavaThread* thread))
128 thread->dirty_card_queue().enqueue(card_addr);
129 JRT_END
130
131 #endif // !SERIALGC
113 132
114 133
115 JRT_LEAF(jlong, SharedRuntime::lmul(jlong y, jlong x)) 134 JRT_LEAF(jlong, SharedRuntime::lmul(jlong y, jlong x))
116 return x * y; 135 return x * y;
117 JRT_END 136 JRT_END