Skip to content


8210265: Crash in HSpaceCounters::update_used()
Browse files Browse the repository at this point in the history
Guard call to update HSpaceCounters with flag

Reviewed-by: phh
Backport-of: a7d4df5
  • Loading branch information
Andrew Lu authored and Paul Hohensee committed Nov 10, 2023
1 parent 2b9d54a commit 27bfce0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions test/hotspot/jtreg/gc/
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit if you need additional information or have any
* questions.

/* @test TestNoPerfCounter
* @bug 8210265
* @requires vm.gc=="null"
* @library /test/lib /
* @summary Tests that disabling perf counters does not crash the VM
* @run main/othervm -XX:-UsePerfData TestNoPerfCounter

public class TestNoPerfCounter {
public static void main(String[] args) throws Exception {
// Nothing to do

1 comment on commit 27bfce0

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.