Skip to content
Permalink
Browse files
8271353: PerfDataManager::destroy crashes in VM_Exit
Reviewed-by: dholmes, stuefe, minqi
  • Loading branch information
Xin Liu committed Jul 28, 2021
1 parent 357947a commit 41b4c19086c0b238bdeea9f3f14ee9997253b2f2
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/hotspot/share/runtime/perfData.cpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -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 ? 0 : _sampled->length(),
_constants == NULL ? 0 : _constants->length());

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

1 comment on commit 41b4c19

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 41b4c19 Jul 28, 2021

Please sign in to comment.