RFR: 8285872: JFR: Remove finalize() methods

Erik Gahlin egahlin at openjdk.java.net
Mon May 2 22:36:45 UTC 2022


Hi,

Could I have review of a fix that removes the finalize() methods in the jdk.jfr module.

Chunks a reference counted so finalizers are not needed. To verify this, I added checks to the finalize() methods to make sure resources were not released when the finalizer was run. 

Testing: jdk/jdk/jfr multiple times

Thanks
Erik

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

Commit messages:
 - Initial

Changes: https://git.openjdk.java.net/jdk/pull/8510/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8510&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8285872
  Stats: 28 lines in 3 files changed: 0 ins; 28 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8510.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8510/head:pull/8510

PR: https://git.openjdk.java.net/jdk/pull/8510


More information about the hotspot-jfr-dev mailing list