Skip to content

Commit

Permalink
initializeGCParameters For CRIU Restore
Browse files Browse the repository at this point in the history
Required for downstream OpenJ9 Changes. See
eclipse-openj9/openj9#17459 (comment)

Signed-off-by: Salman Rana <[email protected]>
  • Loading branch information
RSalman committed Jun 15, 2023
1 parent 5d0dba6 commit 725896f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gc/base/Configuration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ class MM_Configuration : public MM_BaseVirtual
*/
virtual bool reinitializeForRestore(MM_EnvironmentBase* env)
{
Assert_MM_unreachable();
return false;
initializeGCParameters(env);
return true;
}
#endif /* defined(J9VM_OPT_CRIU_SUPPORT) */

Expand Down
2 changes: 2 additions & 0 deletions gc/base/standard/ConfigurationStandard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ MM_ConfigurationStandard::reinitializeForRestore(MM_EnvironmentBase* env)
{
MM_GCExtensionsBase* extensions = env->getExtensions();

MM_Configuration::reinitializeForRestore(env);

MM_MemoryPool *memoryPool;
MM_HeapMemoryPoolIterator poolIterator(env, extensions->heap);

Expand Down

0 comments on commit 725896f

Please sign in to comment.