JFR: Don't record thread metadata in case jdk.ThreadStart is disabled

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: hotspot
    • jfr

      By default, the jdk.ThreadStart event is enabled, which means the thread will be included in the recording. Emitting a checkpoint when a thread starts is therefore fine. If jdk.ThreadStart is disabled, an unnecessary checkpoint is written, which adds waste to the recording.

      If this is fixed, the following two lines could be added to test/jdk/jfr/jvm/TestWaste.java

                  // Unused threads should not create unreasonable amount of waste
                  r.disable("jdk.ThreadStart");
                  r.disable("jdk.ThreadStop");

            Assignee:
            Kerem Kat
            Reporter:
            Erik Gahlin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: