Loading... (original) (raw)

The Klass::verify_on() is sometimes called on unloaded klasses. It then reads a dead mirror, without using AS_NO_KEEPALIVE, which can make GC barriers feel like :C. In order to make barriers happy, AS_NO_KEEPALIVE should be used when loading dead oops.

backported by

Backport - A issue that is required to port a Bug or Feature into another product release. This issue type is generally associated with the main Bug/Feature to represent each individual release of the port. JDK-8228877 Change mirror accessor in Klass::verify_on() to use AS_NO_KEEPALIVE

Backport - A issue that is required to port a Bug or Feature into another product release. This issue type is generally associated with the main Bug/Feature to represent each individual release of the port. JDK-8269204 Change mirror accessor in Klass::verify_on() to use AS_NO_KEEPALIVE

relates to

Enhancement - null JDK-8210063 ZGC: Enable load barriers for IN_NATIVE runtime barriers

Bug - A problem which impairs or prevents the functions of the product. JDK-8224531 SEGV while collecting Klass statistics