Skip to content

Commit

Permalink
8332699: ubsan: jfrEventSetting.inline.hpp:31:43: runtime error: inde…
Browse files Browse the repository at this point in the history
…x 163 out of bounds for type 'jfrNativeEventSetting [162]'

Backport-of: abbf45b57edf2f5bf9a3f2fa408f35a43ebe9bb9
  • Loading branch information
MBaesken committed Aug 2, 2024
1 parent 6bc382f commit 0fdb206
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make/src/classes/build/tools/jfr/GenerateJfrFiles.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2024, 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
Expand Down Expand Up @@ -660,7 +660,7 @@ private static void printJfrEventControlHpp(Metadata metadata, File outputFile)
out.write("");
out.write("union JfrNativeSettings {");
out.write(" // Array version.");
out.write(" jfrNativeEventSetting bits[NUMBER_OF_EVENTS];");
out.write(" jfrNativeEventSetting bits[NUMBER_OF_EVENTS + NUMBER_OF_RESERVED_EVENTS];");
out.write(" // Then, to make it easy to debug,");
out.write(" // add named struct members also.");
out.write(" struct {");
Expand Down

1 comment on commit 0fdb206

@openjdk-notifier
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.