RFR: 8362379: Test serviceability/HeapDump/UnmountedVThreadNativeMethodAtTop.java should mark as /native

SendaoYan syan at openjdk.org
Sat Jul 19 13:29:48 UTC 2025


On Fri, 18 Jul 2025 17:01:10 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

>> Hi all,
>> 
>>   Test serviceability/HeapDump/UnmountedVThreadNativeMethodAtTop.java call native libary 'UnmountedVThreadNativeMethodAtTop' with System.loadLibrary. If run this test without jtreg option '-nativepath', jtreg will report 'JUnit test failure'. After this PR, we add jtreg directive `/native` to test header, run this test without jtreg option '-nativepath', jtreg will report 'Error. Use -nativepath to specify the location of native code'. So add `/native` directive will make this test more friendly.
>> 
>> Change has been verified locally, test-fix only, no risk.
>
> Looks good.

Thanks for the reviews @sspitsyn @plummercj

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

PR Comment: https://git.openjdk.org/jdk/pull/26384#issuecomment-3092351253


More information about the serviceability-dev mailing list