RFR: JDK-8303549: [AIX] TestNativeStack.java is failing with exit value 1 [v4]
David Holmes
dholmes at openjdk.org
Wed Jun 7 02:12:54 UTC 2023
On Tue, 6 Jun 2023 18:53:04 GMT, Varada M <duke at openjdk.org> wrote:
>> Stackoverflow exception has caused an exit value 1 when native thread is attaching as daemon.
>> On AIX the default stack for posix thread is 192 KB. For this particular test we run thread in pthread_create() which is defined in pthread library thus not following JVM thread creation routines. Hence we have to explicitly provide stack size.
>>
>> Reported Issue :[JDK-8303549]( https://bugs.openjdk.org/browse/JDK-8303549)
>
> Varada M has updated the pull request incrementally with two additional commits since the last revision:
>
> - Added pthread_attr_destroy
> - Added pthread_attr_destroy
test/hotspot/jtreg/runtime/jni/getCreatedJavaVMs/exeGetCreatedJavaVMs.c line 109:
> 107: printf("pthread_attr_destroy failed: %d - %d\n", i, status);
> 108: exit(-1);
> 109: }
Nit: `pthread_attr_destroy` has no specified failure modes. We never check its return value elsewhere in the OpenJDK code.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14209#discussion_r1220708978
More information about the hotspot-runtime-dev
mailing list