RFR: 8330053: JFR: Use LocalDateTime instead ZonedDateTime [v2]

Erik Gahlin egahlin at openjdk.org
Thu Apr 11 18:29:54 UTC 2024


> Could I have a review of PR that changes so LocalDateTime instead of ZonedDateTime is used when naming chunk files. Problem is that a java.time.DateTimeException occurs when ZonedDateTime.now() is used and the time zone is invalid. This happens in a JCK test.
> 
> It would be possible to catch the exception and fallback to LocalDateTime, but it seems better to have filenames that can't be manipulated if an application calls TimeZone::setDefault. That said, if there is a good argument to use a fallback and not always the default time zone, please let me know.
> 
> Testing: jdk/jdk/jfr + applicable test in JCK.
> 
> Thanks
> Erik

Erik Gahlin has updated the pull request incrementally with one additional commit since the last revision:

  Update copyright

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/18729/files
  - new: https://git.openjdk.org/jdk/pull/18729/files/830de986..d51e83a2

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=18729&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18729&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/18729.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18729/head:pull/18729

PR: https://git.openjdk.org/jdk/pull/18729


More information about the hotspot-jfr-dev mailing list