JFR: Native events should support empty payloads

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 15
    • Affects Version/s: 15
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: