Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8239585

JFR: Native events should support empty payloads

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 15
    • 15
    • hotspot
    • None
    • jfr
    • b12

      Today, events defined in metadata.xml must have at least one field. This is because metadata.xsd defaults to minOccurs ="1". The schema should be changed so it has minOccurs="0" for <Field> elements inside an <Event> element

      Furthermore, the native writer also needs to be changed to accommodate for this. Today the JVM hangs when an event with no fields is emitted.

            egahlin Erik Gahlin
            egahlin Erik Gahlin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: