-
Enhancement
-
Resolution: Unresolved
-
P4
-
repo-leyden
[1] When we add other types of objects to the AOT cache that use Reference objects (e.g., JDK-8351005 "Revert back to SoftReference for Class::reflectionData"), they work as expected.
[2] The cached Reference objects used by the method handles implementation (such as those used by MethodType.internTable) should not be unnecessarily coupled with unrelated Reference (e.g., via the Reference::link field due to ReferenceQueue or Finalizer operations). Otherwise, this could cause unrelated objects to be unintentionally stored in the AOT cache.
[3] java.lang.ref.Cleaner should work as expected during both the AOT assembly phase and production run.
[4] Finalization should work as expected during both the AOT assembly phase and production run.
This RFE adds a mechanism to test the behavior of Reference in the AOT cache so that we can determine if the current support for Reference objects in Leyden is good enough for upstreaming to the mainline.
(Note: this RFE may not test everything as listed above. Some additional test cases may be added by a subsequent REF).
- relates to
-
JDK-8341587 [premain] Support Soft/Weak Reference in AOT cache
-
- Resolved
-