RFR: JDK-8276422 Add command-line option to disable finalization [v4]
Stuart Marks
smarks at openjdk.java.net
Fri Nov 19 00:14:18 UTC 2021
> Pretty much what it says. The new option controls a static member in InstanceKlass that's consulted to determine whether the finalization machinery is activated for instances when a class is loaded. A new native method is added so that this state can be queried from Java. This is used to control whether a finalizer thread is created and to disable the `System` and `Runtime::runFinalization` methods. Includes tests for the above.
>
> Adding an option to disable finalization is part of [JEP 421](https://openjdk.java.net/jeps/421).
Stuart Marks has updated the pull request incrementally with one additional commit since the last revision:
Remove Finalizer.Holder class.
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/6442/files
- new: https://git.openjdk.java.net/jdk/pull/6442/files/5df8bf9f..e357eeec
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6442&range=03
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6442&range=02-03
Stats: 6 lines in 1 file changed: 0 ins; 2 del; 4 mod
Patch: https://git.openjdk.java.net/jdk/pull/6442.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/6442/head:pull/6442
PR: https://git.openjdk.java.net/jdk/pull/6442
More information about the core-libs-dev
mailing list