Supported data types for events
Philippe Marschall
kustos at gmx.net
Wed Apr 17 06:12:44 UTC 2019
On 15.04.19 11:19, Erik Gahlin wrote:
> Hi Philippe,
>
> The supported data types in Java are primitives, java.lang.Class, java.lang.Thread and java.lang.String. You can see the list in the toType method here
>
> http://hg.openjdk.java.net/jdk/jdk/file/tip/src/jdk.jfr/share/classes/jdk/jfr/internal/ASMToolkit.java
>
> You can't use JSR-310 types, but it is possible to store durations and instants using the annotations @Timespan and @Timestamp on numeric fields.
> In native, arrays are supported and it is possible to define you own composite data types, for example VirtualSpace You can see the list here:
> http://hg.openjdk.java.net/jdk/jdk/file/tip/src/hotspot/share/jfr/metadata/metadata.xml
>
> The file format only support “value types”, so it is not possible to store an array with different data types per element.
Awesome thank you.
Cheers
Philippe
More information about the hotspot-jfr-dev
mailing list