8367410: ZGC: Remove unused ZNmethodTable::wait_until_iteration_done()

Reviewed-by: stefank, fandreuzzi
This commit is contained in:
Thomas Schatzl 2025-09-16 08:46:18 +00:00
parent eb26865c36
commit ca89cd06d3
3 changed files with 3 additions and 13 deletions

View File

@ -194,14 +194,6 @@ void ZNMethodTable::register_nmethod(nmethod* nm) {
}
}
void ZNMethodTable::wait_until_iteration_done() {
assert(CodeCache_lock->owned_by_self(), "Lock must be held");
while (_iteration.in_progress() || _iteration_secondary.in_progress()) {
CodeCache_lock->wait_without_safepoint_check();
}
}
void ZNMethodTable::unregister_nmethod(nmethod* nm) {
MutexLocker mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -64,8 +64,6 @@ public:
static void register_nmethod(nmethod* nm);
static void unregister_nmethod(nmethod* nm);
static void wait_until_iteration_done();
static void nmethods_do_begin(bool secondary);
static void nmethods_do_end(bool secondary);
static void nmethods_do(bool secondary, NMethodClosure* cl);

View File

@ -35,11 +35,11 @@ private:
size_t _size;
ZCACHE_ALIGNED volatile size_t _claimed;
bool in_progress() const;
public:
ZNMethodTableIteration();
bool in_progress() const;
void nmethods_do_begin(ZNMethodTableEntry* table, size_t size);
void nmethods_do_end();
void nmethods_do(NMethodClosure* cl);