mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8366544: Parallel: Inline PSParallelCompact::invoke_no_policy
Reviewed-by: tschatzl
This commit is contained in:
parent
55e7af0560
commit
3fb9246af9
@ -969,19 +969,11 @@ bool PSParallelCompact::invoke(bool clear_all_soft_refs) {
|
||||
assert(SafepointSynchronize::is_at_safepoint(), "should be at safepoint");
|
||||
assert(Thread::current() == (Thread*)VMThread::vm_thread(),
|
||||
"should be in vm thread");
|
||||
assert(ref_processor() != nullptr, "Sanity");
|
||||
|
||||
SvcGCMarker sgcm(SvcGCMarker::FULL);
|
||||
IsSTWGCActiveMark mark;
|
||||
|
||||
return PSParallelCompact::invoke_no_policy(clear_all_soft_refs);
|
||||
}
|
||||
|
||||
// This method contains no policy. You should probably
|
||||
// be calling invoke() instead.
|
||||
bool PSParallelCompact::invoke_no_policy(bool clear_all_soft_refs) {
|
||||
assert(SafepointSynchronize::is_at_safepoint(), "must be at a safepoint");
|
||||
assert(ref_processor() != nullptr, "Sanity");
|
||||
|
||||
ParallelScavengeHeap* heap = ParallelScavengeHeap::heap();
|
||||
|
||||
GCIdMark gc_id_mark;
|
||||
|
||||
@ -762,7 +762,6 @@ public:
|
||||
static void fill_dead_objs_in_dense_prefix(uint worker_id, uint num_workers);
|
||||
|
||||
static bool invoke(bool clear_all_soft_refs);
|
||||
static bool invoke_no_policy(bool clear_all_soft_refs);
|
||||
|
||||
template<typename Func>
|
||||
static void adjust_in_space_helper(SpaceId id, volatile uint* claim_counter, Func&& on_stripe);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user