Skip to content

Commit c419dda

Browse files
committed
8372163: G1: Remove unused G1HeapRegion::remove_code_root
Reviewed-by: tschatzl
1 parent ad38a12 commit c419dda

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/hotspot/share/gc/g1/g1HeapRegion.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,6 @@ void G1HeapRegion::add_code_root(nmethod* nm) {
307307
rem_set()->add_code_root(nm);
308308
}
309309

310-
void G1HeapRegion::remove_code_root(nmethod* nm) {
311-
rem_set()->remove_code_root(nm);
312-
}
313-
314310
void G1HeapRegion::code_roots_do(NMethodClosure* blk) const {
315311
rem_set()->code_roots_do(blk);
316312
}

src/hotspot/share/gc/g1/g1HeapRegion.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,6 @@ class G1HeapRegion : public CHeapObj<mtGC> {
543543
// Routines for managing a list of code roots (attached to the
544544
// this region's RSet) that point into this heap region.
545545
void add_code_root(nmethod* nm);
546-
void remove_code_root(nmethod* nm);
547546

548547
// Applies blk->do_nmethod() to each of the entries in
549548
// the code roots list for this region

0 commit comments

Comments
 (0)