mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-07 08:59:07 +00:00
8367410: ZGC: Remove unused ZNmethodTable::wait_until_iteration_done()
Reviewed-by: stefank, fandreuzzi
This commit is contained in:
parent
eb26865c36
commit
ca89cd06d3
@ -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);
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user