Open
Description
Snippets generated by genLoadAddressConstantInSnippet
are only patched on class unloading if they are created with an aloadi
or aconst
node, and profiled address constants aren't restricted to only aloadi
and aconst
nodes. Example: this issue came up in profile directed guarded devirtualization, where the node in question was a virtual call node. Either genLoadAddressConstantInSnippet
needs to be updated to support profiled address constants or a new functions needs to be created to create snippets for profiled addresses that can be patched on class unloading.
Some discussion at #14272 (comment)