RFR: 8332699: ubsan: jfrEventSetting.inline.hpp:31:43: runtime error: index 163 out of bounds for type 'jfrNativeEventSetting [162]'
Thomas Stuefe
stuefe at openjdk.org
Tue Jun 11 16:50:17 UTC 2024
On Tue, 11 Jun 2024 14:46:10 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> My maximum JfrEventId is 163 , see the generated hotspot/variant-server/gensrc/jfrfiles/jfrEventIds.hpp
>
> ```
>
> enum JfrEventId {
> JfrMetadataEvent = 0,
> JfrCheckpointEvent = 1,
> JfrDurationEvent = 2,
> JfrInstantEvent = 3,
> JfrValueEvent = 4,
> JfrTextEvent = 5,
> JfrZThreadDebugEvent = 6,
> .....
> JfrJavaAgentEvent = 161,
> JfrNativeAgentEvent = 162,
> JfrDeprecatedInvocationEvent = 163,
> };
> ```
>
> so NUMBER_OF_EVENTS + NUMBER_OF_RESERVED_EVENTS looks fine to me. 163 is the highest I could see while testing.
No, I am quite sure the `ev` substructure is wrong. The structure contains members that are not events, that's why its larger.
But it's an issue orthogonal to the one you are fixing. I opened https://bugs.openjdk.org/browse/JDK-8334031 to track it.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19628#issuecomment-2161205376
More information about the build-dev
mailing list