openj9 icon indicating copy to clipboard operation
openj9 copied to clipboard

Adjust IProfiler locked entry assert

Open cjjdespres opened this issue 4 months ago • 1 comments

The TR_IProfiler::releaseAllEntries() function is used with DEBUG to check that all entries in the IProfiler _bcHashTable are unlocked at JVM exit. This function now compensates for a known race condition in TR_IProfiler::findOrCreateEntry() by also reporting the number of locked entries it encounters that were likely not a result of that race condition, so it can be asserted instead that that total is zero.

Fixes: https://github.com/eclipse-openj9/openj9/issues/20344

cjjdespres avatar Oct 17 '24 16:10 cjjdespres