By design the pre-resolution of constant pool entries in the assembly phase should be controlled by the pre-resolve list generated in the training run as part of FinalImageRecipes. However, preimage may also contain some constant pool entries in resolved state. So, now there are two sources to get a pre-resolved CP entry in the assmebly phase:
1. Through FinalImageReceipes
2. Resolved CP entries in preimage
This makes it difficult to trace the resolution of CP entries in the assembly phase.
Ideally the training phase should not store any CP entry in the resolved state. It should rather pass the information about CP entries to be pre-resolved through FinalImageRecipes only.
1. Through FinalImageReceipes
2. Resolved CP entries in preimage
This makes it difficult to trace the resolution of CP entries in the assembly phase.
Ideally the training phase should not store any CP entry in the resolved state. It should rather pass the information about CP entries to be pre-resolved through FinalImageRecipes only.
- links to
-
Commit(master)
openjdk/jdk/d8ebe387
-
Review(master)
openjdk/jdk/27927