RFR: 8342105: JVM Crash when Jacoco and JFR are active [v2]
Erik Gahlin
egahlin at openjdk.org
Mon Nov 11 14:10:06 UTC 2024
On Tue, 5 Nov 2024 13:15:56 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:
>> Greetings,
>>
>> JFR hooking invocations of deprecated methods have a problem supporting Condy because these involve indirect invocations (via a bootstrap method) and do not have a reified bytecode invocation instruction (which gets support structures in the MDO).
>>
>> The bytecode for a condy invocation is ldc or fast_aload (when the bytecode is rewritten), and no MDO support structures are added for these.
>>
>> ConstantPool idx 0x55: ("Condy")
>>
>> 55 = Dynamic 0:54 // 0:$jacocoData:Ljava/lang/Object;
>>
>> CONSTANT_Dynamic_info {
>> u1 tag;
>> u2 bootstrap_method_attr_index; [0]
>> u2 name_and_type_index; [54]
>> }
>>
>> For additional details, please take a look at the JIRA issue.
>>
>> Testing: jdk_jfr
>>
>> Thanks
>> Markus
>
> Markus Grönlund has updated the pull request incrementally with one additional commit since the last revision:
>
> add missing default case
Marked as reviewed by egahlin (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/21902#pullrequestreview-2427381283
More information about the hotspot-jfr-dev
mailing list