RFR: 8300295: [AIX] TestDaemonDestroy fails due to !is_primordial_thread assertion [v6]
Thomas Stuefe
stuefe at openjdk.org
Thu Feb 2 13:09:25 UTC 2023
On Wed, 1 Feb 2023 14:24:17 GMT, Varada M <duke at openjdk.org> wrote:
>> The assertion failure with exit value 134 for the test TestDaemonDestroy.java is because when the JNI_CreateJavaVM is being called by main thread on AIX it prevents the jvm creation on the primordial thread on AIX. This is solved in such a way that when JNI_CreateJavaVM is called it runs in pthread thus enabling the creation of jvm.
>>
>> JBS issue for this test : [JDK-8300295](https://bugs.openjdk.org/browse/JDK-8300295)
>
> Varada M has updated the pull request incrementally with one additional commit since the last revision:
>
> Removed the fuctions pthread_attr_setdetachstate and pthread_attr_setguardsize
Sorry, had not noticed this before: We need error handling for the pthread routines. At the very least for pthread_create, which is the most likely to fail. Printing the errno and exiting with -1 should be fine in all cases. Would save the future analyzer of failed tests a lot of time.
-------------
Changes requested by stuefe (Reviewer).
PR: https://git.openjdk.org/jdk/pull/12006
More information about the hotspot-runtime-dev
mailing list