RFR: 8288532: additional review changes for JDK-8286830
Daniel D. Daugherty
dcubed at openjdk.org
Fri Jun 17 19:08:57 UTC 2022
On Fri, 17 Jun 2022 17:25:00 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:
>> Update a couple of tests that were modified by JDK-8286830. Now the tests properly
>> honor any specified time limit by splitting the time between both sub-tests.
>> Also pick up a sanity check based on JDK-8288497 that I've been using in recent
>> stress testing.
>
> src/hotspot/share/runtime/thread.inline.hpp line 151:
>
>> 149: ~AsyncExceptionHandshake() {
>> 150: Thread* current = Thread::current();
>> 151: if (current->is_Java_thread()) {
>
> Why verify if this is a JavaThread? The target is always a JavaThread, and the sender of the exception is also a JavaThread(JVM_StopThread and JvmtiEnv::StopThread). Even the handshake operation will assert if the handshaker is not a JT.
Will investigate.
> test/hotspot/jtreg/runtime/Thread/StopAtExit.java line 75:
>
>> 73: }
>> 74: }
>> 75: timeMax /= 2; // Split time between the two sub-tests.
>
> Maybe bump DEF_TIME_MAX to 60 seconds now so both subtests run the original 30 seconds? My intention was to run the same test again(same time) but with the addition of threadCreator.
I try not to have the default config for a stress test run longer that 30 seconds total.
15 seconds per sub-test is fine.
-------------
PR: https://git.openjdk.org/jdk19/pull/32
More information about the hotspot-runtime-dev
mailing list