-
Bug
-
Resolution: Fixed
-
P3
-
repo-valhalla
-
None
In the current prototype, in ciField.cpp:
static bool trust_final_non_static_fields(ciInstanceKlass* holder) {
:
// Trust VM hidden and unsafe anonymous classes. They are created via Lookup.defineClass or
// the private API (jdk.internal.misc.Unsafe) and can't be serialized, so there is no hacking
// of finals going on with them.
if (holder->is_hidden() || holder->is_unsafe_anonymous())
return true;
static bool trust_final_non_static_fields(ciInstanceKlass* holder) {
:
// Trust VM hidden and unsafe anonymous classes. They are created via Lookup.defineClass or
// the private API (jdk.internal.misc.Unsafe) and can't be serialized, so there is no hacking
// of finals going on with them.
if (holder->is_hidden() || holder->is_unsafe_anonymous())
return true;
- relates to
-
JDK-8233873 final field values should be trusted as constant
- Open
-
JDK-8238358 Implementation of JEP 371: Hidden Classes
- Resolved