mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
8201318: Introduce GCThreadLocalData to abstract GC-specific data belonging to a thread
Reviewed-by: shade, rehn
This commit is contained in:
parent
4c60e69b97
commit
6825739d3f
38 changed files with 372 additions and 299 deletions
|
@ -75,6 +75,9 @@
|
|||
#ifdef COMPILER1
|
||||
#include "c1/c1_Runtime1.hpp"
|
||||
#endif
|
||||
#if INCLUDE_ALL_GCS
|
||||
#include "gc/g1/g1ThreadLocalData.hpp"
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
||||
// Shared stub locations
|
||||
RuntimeStub* SharedRuntime::_wrong_method_blob;
|
||||
|
@ -214,12 +217,12 @@ JRT_LEAF(void, SharedRuntime::g1_wb_pre(oopDesc* orig, JavaThread *thread))
|
|||
}
|
||||
assert(oopDesc::is_oop(orig, true /* ignore mark word */), "Error");
|
||||
// store the original value that was in the field reference
|
||||
thread->satb_mark_queue().enqueue(orig);
|
||||
G1ThreadLocalData::satb_mark_queue(thread).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);
|
||||
G1ThreadLocalData::dirty_card_queue(thread).enqueue(card_addr);
|
||||
JRT_END
|
||||
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue