On Wed, 13 Sep 2023 09:50:35 GMT, Alan Bateman <al...@openjdk.org> wrote:

> Unsafe.{shouldBeInitialized,ensureClassInitialized} are deprecated for 
> removal since JDK 15. It's time to remove them. 
> Lookup.ensureInitialized(Class) was added in Java 15 as a standard API to 
> ensure that an accessible class is initialized. 
> 
> A search of 175973022 classes in 484751 artifacts found:
> - 23 usages of Unsafe.shouldBeInitialized, of which 8 are unique
> - 121 usages of Unsafe.ensureClassInitialized, of which 31 are unique
> 
> Not a lot of usage, many of the usages seem to be code compiled to older 
> releases.

Marked as reviewed by jpai (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/15707#pullrequestreview-1628231574

Reply via email to