RFR: 8300139 : [AIX] Use pthreads to avoid JNI_createVM call from primordial thread [v2]

Thomas Stuefe stuefe at openjdk.org
Wed Feb 8 13:24:50 UTC 2023


On Wed, 8 Feb 2023 11:33:07 GMT, Varada M <duke at openjdk.org> wrote:

> I hate to see the code duplication, but we don't have a sharing mechanism for the native parts of tests so that can't be helped.

It may be interesting to invest some time to find out if the "don't start on primordial thread" rule still holds on modern AIX versions.

I added this rule 18 years ago with our original (internal) AIX port because - IIRC - we were unable to find out the stack dimensions of the primordial thread, and we could not place guard pages reliably. And maybe some other problems too; the primordial thread behaved a lot different from pthread back then.

Maybe modern AIX variants don't have that problem anymore. We could cut down all this coding.

Cheers, Thomas

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

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


More information about the core-libs-dev mailing list