RFR(S) 8245505: Prelink j.l.ref.Reference when loading AOT library

Igor Veresov igor.veresov at oracle.com
Wed May 27 21:57:54 UTC 2020


This change addresses a problem in AOT with the class reference (to j.l.ref.Reference) being introduced too late (during GC barrier expansion). The solution is twofold. The first part is to run the constant replacement phase after the barrier expansion and replace it with an indirect load. The replacement phase is run in a new mode that does replacement only for known classes that are pre-linked by the runtime during the library load. We can’t do replacement with side effects at that point. The second part is the change in the runtime to do the said pre-linking.  

Webrev: http://cr.openjdk.java.net/~iveresov/8245505/webrev.00/ <http://cr.openjdk.java.net/~iveresov/8245505/webrev.00/>
JBS: https://bugs.openjdk.java.net/browse/JDK-8245505

Thanks,
igor






More information about the hotspot-compiler-dev mailing list