Skip to content

Commit

Permalink
8271353: PerfDataManager::destroy crashes in VM_Exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Xin Liu committed Jul 27, 2021
1 parent c8af823 commit d94c9d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspot/share/runtime/perfData.cpp
Expand Up @@ -277,7 +277,8 @@ void PerfDataManager::destroy() {
os::naked_short_sleep(1); // 1ms sleep to let other thread(s) run

log_debug(perf, datacreation)("Total = %d, Sampled = %d, Constants = %d",
_all->length(), _sampled->length(), _constants->length());
_all->length(), _sampled == NULL ? -1 : _sampled->length(),
_constants == NULL ? -1 : _constants->length());

for (int index = 0; index < _all->length(); index++) {
PerfData* p = _all->at(index);
Expand Down

0 comments on commit d94c9d3

Please sign in to comment.