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

Reviewed-by: iklam, rehn
  • Loading branch information
David Holmes committed Mar 31, 2022
1 parent c9a469a commit 1ca0ede60d961a1355397f27fd78a177432c7bc3
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);

3 comments on commit 1ca0ede

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 1ca0ede Mar 31, 2022

Choose a reason for hiding this comment

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

@tstuefe
Copy link
Member

@tstuefe tstuefe commented on 1ca0ede Apr 12, 2022

Choose a reason for hiding this comment

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

/backport jdk17u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on 1ca0ede Apr 12, 2022

Choose a reason for hiding this comment

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

@tstuefe the backport was successfully created on the branch tstuefe-backport-1ca0ede6 in my personal fork of openjdk/jdk17u-dev. To create a pull request with this backport targeting openjdk/jdk17u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit 1ca0ede6 from the openjdk/jdk repository.

The commit being backported was authored by David Holmes on 31 Mar 2022 and was reviewed by Ioi Lam and Robbin Ehn.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk17u-dev:

$ git fetch https://github.com/openjdk-bots/jdk17u-dev tstuefe-backport-1ca0ede6:tstuefe-backport-1ca0ede6
$ git checkout tstuefe-backport-1ca0ede6
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk17u-dev tstuefe-backport-1ca0ede6

Please sign in to comment.