8372163: G1: Remove unused G1HeapRegion::remove_code_root

Reviewed-by: tschatzl
This commit is contained in:
Albert Mingkun Yang 2025-11-20 11:37:07 +00:00
parent ad38a1253a
commit c419dda4e9
2 changed files with 0 additions and 5 deletions

View File

@ -307,10 +307,6 @@ void G1HeapRegion::add_code_root(nmethod* nm) {
rem_set()->add_code_root(nm);
}
void G1HeapRegion::remove_code_root(nmethod* nm) {
rem_set()->remove_code_root(nm);
}
void G1HeapRegion::code_roots_do(NMethodClosure* blk) const {
rem_set()->code_roots_do(blk);
}

View File

@ -543,7 +543,6 @@ public:
// Routines for managing a list of code roots (attached to the
// this region's RSet) that point into this heap region.
void add_code_root(nmethod* nm);
void remove_code_root(nmethod* nm);
// Applies blk->do_nmethod() to each of the entries in
// the code roots list for this region