8366544: Parallel: Inline PSParallelCompact::invoke_no_policy

Reviewed-by: tschatzl
This commit is contained in:
Albert Mingkun Yang 2025-09-02 07:54:36 +00:00
parent 55e7af0560
commit 3fb9246af9
2 changed files with 1 additions and 10 deletions

View File

@ -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;

View File

@ -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);