mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8367417: Serial: Use NMethodToOopClosure during Young GC
Reviewed-by: fandreuzzi, stefank, tschatzl
This commit is contained in:
parent
9c0f41e997
commit
d0ea6686eb
@ -600,13 +600,11 @@ bool DefNewGeneration::collect(bool clear_all_soft_refs) {
|
||||
&old_gen_cl);
|
||||
|
||||
{
|
||||
StrongRootsScope srs(0);
|
||||
RootScanClosure oop_closure{this};
|
||||
CLDScanClosure cld_closure{this};
|
||||
|
||||
MarkingNMethodClosure nmethod_closure(&oop_closure,
|
||||
NMethodToOopClosure::FixRelocations,
|
||||
false /* keepalive_nmethods */);
|
||||
NMethodToOopClosure nmethod_closure(&oop_closure,
|
||||
NMethodToOopClosure::FixRelocations);
|
||||
|
||||
// Starting tracing from roots, there are 4 kinds of roots in young-gc.
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user