RFR: 8364973: Add JVMTI stress testing mode [v5]

Erik Joelsson erikj at openjdk.org
Thu Aug 14 19:52:12 UTC 2025


On Thu, 14 Aug 2025 19:44:59 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

>> The fix added JVMTI stress testing mode.
>> 
>> This mode enables stress agent that could be executed with jtreg test and help to ensure that jvmti functionality doesn't break the other JVM/JDK functionality.
>> 
>> I filed few issues and more are coming. I want to push the agent so it is possible to provide reproduces for problems uncovered by this agent.
>> 
>> The agent has 2 modes now:
>>  - regular that is compatible with most of tests including other jvmti, jdi and jdb tests
>>  - debugger, that additionally test some function requiring  solo capabilities and not compatible with debugger and some jvmti  tests 
>> 
>> The tests incompatible wiht agent (IR, CDS) and some individual tests from tier1 are excluded. There are not plans to support stable execution of all tests with agent right now. However it provokes some crashes worth to be used for exploratory testing.
>> Note, that flagless tests are excluded automatically and not executed in this mode.
>
> Leonid Mesnik has updated the pull request incrementally with three additional commits since the last revision:
> 
>  - Apply suggestions from code review
>    
>    Co-authored-by: Magnus Ihse Bursie <mag at icus.se>
>  - Update test/lib/jdk/test/lib/jvmti/libJvmtiStressAgent.cpp
>    
>    Co-authored-by: Magnus Ihse Bursie <mag at icus.se>
>  - Update test/lib/jdk/test/lib/jvmti/libJvmtiStressAgent.cpp
>    
>    Co-authored-by: Magnus Ihse Bursie <mag at icus.se>

Makefile changes look good now.

I think this new option should be documented in testing.md/html.

-------------

PR Review: https://git.openjdk.org/jdk/pull/26360#pullrequestreview-3121925674


More information about the serviceability-dev mailing list