Skip to content

Commit abbf45b

Browse files
committed
8332699: ubsan: jfrEventSetting.inline.hpp:31:43: runtime error: index 163 out of bounds for type 'jfrNativeEventSetting [162]'
Reviewed-by: jbechberger, stuefe
1 parent bd046d9 commit abbf45b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

make/src/classes/build/tools/jfr/GenerateJfrFiles.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -663,7 +663,7 @@ private static void printJfrEventControlHpp(Metadata metadata, File outputFile)
663663
out.write("");
664664
out.write("union JfrNativeSettings {");
665665
out.write(" // Array version.");
666-
out.write(" jfrNativeEventSetting bits[NUMBER_OF_EVENTS];");
666+
out.write(" jfrNativeEventSetting bits[NUMBER_OF_EVENTS + NUMBER_OF_RESERVED_EVENTS];");
667667
out.write(" // Then, to make it easy to debug,");
668668
out.write(" // add named struct members also.");
669669
out.write(" struct {");

0 commit comments

Comments
 (0)