Skip to content
Permalink
Browse files
8283725: Launching java with "-Xlog:gc*=trace,safepoint*=trace,class*…
…=trace" crashes the JVM

Backport-of: 1ca0ede60d961a1355397f27fd78a177432c7bc3
  • Loading branch information
Harold Seigel committed Apr 27, 2022
1 parent 13f4be3 commit b2418d82a3a11f131e069dea6447f3123c3cdfd7
Showing 1 changed file with 6 additions and 1 deletion.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2022, 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
@@ -334,6 +334,11 @@ void LogOutput::update_config_string(const size_t on_level[LogLevel::Count]) {

assert(n_deviates < deviating_tagsets, "deviating tag set array overflow");
assert(prev_deviates > n_deviates, "number of deviating tag sets must never grow");

if (n_deviates == 1 && n_selections == 0) {
// we're done as we couldn't reduce things any further
break;
}
}
FREE_C_HEAP_ARRAY(LogTagSet*, deviates);
FREE_C_HEAP_ARRAY(Selection, selections);

1 comment on commit b2418d8

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on b2418d8 Apr 27, 2022

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.