mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
6711316: Open source the Garbage-First garbage collector
First mercurial integration of the code for the Garbage-First garbage collector. Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
This commit is contained in:
parent
39463bb3fc
commit
18f3386a98
215 changed files with 36088 additions and 1249 deletions
|
@ -111,6 +111,25 @@ void SharedRuntime::print_ic_miss_histogram() {
|
|||
}
|
||||
#endif // PRODUCT
|
||||
|
||||
#ifndef SERIALGC
|
||||
|
||||
// G1 write-barrier pre: executed before a pointer store.
|
||||
JRT_LEAF(void, SharedRuntime::g1_wb_pre(oopDesc* orig, JavaThread *thread))
|
||||
if (orig == NULL) {
|
||||
assert(false, "should be optimized out");
|
||||
return;
|
||||
}
|
||||
// store the original value that was in the field reference
|
||||
thread->satb_mark_queue().enqueue(orig);
|
||||
JRT_END
|
||||
|
||||
// G1 write-barrier post: executed after a pointer store.
|
||||
JRT_LEAF(void, SharedRuntime::g1_wb_post(void* card_addr, JavaThread* thread))
|
||||
thread->dirty_card_queue().enqueue(card_addr);
|
||||
JRT_END
|
||||
|
||||
#endif // !SERIALGC
|
||||
|
||||
|
||||
JRT_LEAF(jlong, SharedRuntime::lmul(jlong y, jlong x))
|
||||
return x * y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue