Skip to content

Commit 3c43f65

Browse files
authored
Merge pull request #18960 from cjjdespres/wkc-fix
Set cached compInfoPT in server shared cache
2 parents 5a29d29 + bf8afc2 commit 3c43f65

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

runtime/compiler/runtime/SymbolValidationManager.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,13 @@ TR::SymbolValidationManager::SymbolValidationManager(TR::Region &region, TR_Reso
9090
#if defined(J9VM_OPT_JITSERVER)
9191
auto stream = TR::CompilationInfo::getStream();
9292
if (stream && _fej9->sharedCache())
93+
{
9394
// because a different VM is used here, a new Shared Cache object was created, so
94-
// need to update stream
95-
// JITServer TODO: we update stream in multiple places, better to change it to only one
95+
// need to update stream and compInfoPT
96+
// JITServer TODO: we update stream and compInfoPT in multiple places, better to change it to only one
9697
((TR_J9JITServerSharedCache *) _fej9->sharedCache())->setStream(stream);
98+
((TR_J9JITServerSharedCache *) _fej9->sharedCache())->setCompInfoPT(_fej9->_compInfoPT);
99+
}
97100
#endif
98101

99102
defineGuaranteedID(NULL, TR::SymbolType::typeOpaque);

0 commit comments

Comments
 (0)