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

JFR: Consistent timestamps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 25
    • 25
    • hotspot
    • None
    • jfr
    • b13

      The JDK parser stores time conversion factors (such as startTicks, startNanos, divisor, and zoneOffset) in the EventParser object for each event type.

      These factors remain the same for all chunks in a recording unless a new event type is registered. When this happens, all parsers are rebuilt with the time conversion factors for that chunk. The conversion factors should remain consistent for the entire recording and not depend on whether a user-defined event is registered.

      An argument can be made that the factors should be updated if the parser is streaming, as they might become out of sync if the stream runs for an extended period. Whether this is true or not requires further consideration, as it would represent a behavioral change.

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

              Created:
              Updated:
              Resolved: