On Tue, 14 Mar 2023 22:49:07 GMT, Chris Plummer <cjplum...@openjdk.org> wrote:

>> The change:
>> - updates UniqueVtableTest to follow standard SA way - attach to target from 
>> subprocess and use SATestUtils.addPrivilegesIfNeeded for the subprocess;
>> - updates several tests in the same directory to resolve 
>> NoClassDefFoundError failures; It's known JTReg issue that "@build" actions 
>> for part of used shared classes may cause intermittent NoClassDefFoundError 
>> in other tests which use the same shared library classpath.
>> 
>> Tested: 100 runs on all platforms, no failures
>
> test/hotspot/jtreg/serviceability/sa/UniqueVtableTest.java line 168:
> 
>> 166:         try {
>> 167:             app = LingeredApp.startApp();
>> 168:             createAnotherToAttach(app.getPid());
> 
> Did you ever figure out why attaching from the main test process sometimes 
> fails?

No. It looks like JTReg executes main test process differently than the 
sub-process is executed, but I didn't find difference which can cause attach 
timeouts.

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

PR: https://git.openjdk.org/jdk/pull/13030

Reply via email to