From 5fc85e9eeea47610bd6e8bf5e7e6d8ddbc3d68b6 Mon Sep 17 00:00:00 2001 From: Salman Rana Date: Wed, 14 Jun 2023 13:44:11 -0400 Subject: [PATCH] Invoke Scavenger Reinit during Global GC Reinit Relates to https://github.com/eclipse-openj9/openj9/pull/17459#discussion_r1218353391 Signed-off-by: Salman Rana --- gc/base/standard/ParallelGlobalGC.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gc/base/standard/ParallelGlobalGC.cpp b/gc/base/standard/ParallelGlobalGC.cpp index 8d806a4caf1..493bb289c98 100644 --- a/gc/base/standard/ParallelGlobalGC.cpp +++ b/gc/base/standard/ParallelGlobalGC.cpp @@ -1925,6 +1925,11 @@ MM_ParallelGlobalGC::reinitializeForRestore(MM_EnvironmentBase *env) ) { rc = false; } +#if defined(OMR_GC_MODRON_SCAVENGER) + else if (_extensions->scavengerEnabled && (NULL != _extensions->scavenger)) { + rc = _extensions->scavenger->reinitializeForRestore(env); + } +#endif /* defined(OMR_GC_MODRON_SCAVENGER) */ return rc; }