Skip to content

Commit

Permalink
Merge pull request #18656 from cjjdespres/shut-down-rom-cache
Browse files Browse the repository at this point in the history
Shut down ROM class cache if purging all clients
  • Loading branch information
mpirvu authored Jan 3, 2024
2 parents 7cba421 + cb73077 commit 4e04228
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions runtime/compiler/runtime/JITClientSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1241,6 +1241,13 @@ ClientSessionHT::purgeOldDataIfNeeded()
_clientSessionMap.erase(iter); // delete the mapping from the hashtable
}
}
// If all the clients were deleted, shut down the shared ROMClass cache
if (_clientSessionMap.empty())
{
if (auto cache = TR::CompilationInfo::get()->getJITServerSharedROMClassCache())
cache->shutdown();
}

_timeOfLastPurge = crtTime;

// JITServer TODO: keep stats on how many elements were purged
Expand Down

0 comments on commit 4e04228

Please sign in to comment.