@@ -1428,7 +1428,8 @@ TR_J9SharedCache::lookupClassFromChainAndLoader(uintptr_t *chainData, void *clas
1428
1428
if (!clazz && comp->isDeserializedAOTMethod ())
1429
1429
{
1430
1430
auto deserializer = TR::CompilationInfo::get ()->getJITServerAOTDeserializer ();
1431
- clazz = deserializer->getGeneratedClass ((J9ClassLoader *)classLoader, romClassOffset, comp);
1431
+ auto helper = DeserializerHelper (comp->j9VMThread (), comp->fej9 (), comp->trMemory (), comp);
1432
+ clazz = deserializer->getGeneratedClass ((J9ClassLoader *)classLoader, romClassOffset, &helper);
1432
1433
}
1433
1434
#endif /* defined(J9VM_OPT_JITSERVER) */
1434
1435
@@ -1870,7 +1871,8 @@ TR_J9DeserializerSharedCache::romClassFromOffsetInSharedCache(uintptr_t offset)
1870
1871
{
1871
1872
TR::Compilation *comp = _compInfoPT->getCompilation ();
1872
1873
bool wasReset = false ;
1873
- auto romClass = _deserializer->romClassFromOffsetInSharedCache (offset, comp, wasReset);
1874
+ auto helper = DeserializerHelper (comp->j9VMThread (), comp->fej9 (), comp->trMemory (), comp);
1875
+ auto romClass = _deserializer->romClassFromOffsetInSharedCache (offset, &helper, wasReset);
1874
1876
if (wasReset)
1875
1877
comp->failCompilation <J9::AOTDeserializerReset>(
1876
1878
" Deserializer reset during relocation of method %s" , comp->signature ());
@@ -1886,7 +1888,8 @@ TR_J9DeserializerSharedCache::pointerFromOffsetInSharedCache(uintptr_t offset)
1886
1888
{
1887
1889
TR::Compilation *comp = _compInfoPT->getCompilation ();
1888
1890
bool wasReset = false ;
1889
- auto ptr = _deserializer->pointerFromOffsetInSharedCache (offset, comp, wasReset);
1891
+ auto helper = DeserializerHelper (comp->j9VMThread (), comp->fej9 (), comp->trMemory (), comp);
1892
+ auto ptr = _deserializer->pointerFromOffsetInSharedCache (offset, &helper, wasReset);
1890
1893
if (wasReset)
1891
1894
comp->failCompilation <J9::AOTDeserializerReset>(
1892
1895
" Deserializer reset during relocation of method %s" , comp->signature ());
@@ -1916,7 +1919,8 @@ TR_J9DeserializerSharedCache::classMatchesCachedVersion(J9Class *clazz, UDATA *c
1916
1919
// is equal to the one we are trying to validate.
1917
1920
TR::Compilation *comp = _compInfoPT->getCompilation ();
1918
1921
bool wasReset = false ;
1919
- auto ramClass = _deserializer->classFromOffset (chainData[1 ], comp, wasReset);
1922
+ auto helper = DeserializerHelper (comp->j9VMThread (), comp->fej9 (), comp->trMemory (), comp);
1923
+ auto ramClass = _deserializer->classFromOffset (chainData[1 ], &helper, wasReset);
1920
1924
if (wasReset)
1921
1925
comp->failCompilation <J9::AOTDeserializerReset>(
1922
1926
" Deserializer reset during relocation of method %s" , comp->signature ());
@@ -1935,7 +1939,8 @@ TR_J9DeserializerSharedCache::lookupClassFromChainAndLoader(uintptr_t *chainData
1935
1939
// We do not need to perform that checking here, because during deserialization we will have already resolved the first class in the chain to
1936
1940
// a J9Class and verified that it matches. Thus we can simply return that cached first J9Class.
1937
1941
bool wasReset = false ;
1938
- auto clazz = _deserializer->classFromOffset (chainData[1 ], comp, wasReset);
1942
+ auto helper = DeserializerHelper (comp->j9VMThread (), comp->fej9 (), comp->trMemory (), comp);
1943
+ auto clazz = _deserializer->classFromOffset (chainData[1 ], &helper, wasReset);
1939
1944
if (wasReset)
1940
1945
comp->failCompilation <J9::AOTDeserializerReset>(
1941
1946
" Deserializer reset during relocation of method %s" , comp->signature ());
@@ -1951,7 +1956,8 @@ TR_J9DeserializerSharedCache::romMethodFromOffsetInSharedCache(uintptr_t offset)
1951
1956
{
1952
1957
TR::Compilation *comp = _compInfoPT->getCompilation ();
1953
1958
bool wasReset = false ;
1954
- auto romMethod = _deserializer->romMethodFromOffsetInSharedCache (offset, comp, wasReset);
1959
+ auto helper = DeserializerHelper (comp->j9VMThread (), comp->fej9 (), comp->trMemory (), comp);
1960
+ auto romMethod = _deserializer->romMethodFromOffsetInSharedCache (offset, &helper, wasReset);
1955
1961
if (wasReset)
1956
1962
comp->failCompilation <J9::AOTDeserializerReset>(
1957
1963
" Deserializer reset during relocation of method %s" , comp->signature ());
0 commit comments