RFR: 8290059: Do not use std::thread in panama tests [v4]

Jorn Vernee jvernee at openjdk.org
Tue Jul 26 14:34:19 UTC 2022


> This patch removes the use of std::thread from the `java.lang.foreign` tests, and switches to the OS specific thread APIs, in order to change things such as the stack size on some platforms where this is required in the future (see the JBS issue).
> 
> This is done by adding a small header-only library that exposes a function to run code in freshly spawned threads (`run_async`).
> 
> Testing: Running the affected tests on platforms that implement the linker.

Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision:

  1 more comment

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/9599/files
  - new: https://git.openjdk.org/jdk/pull/9599/files/cf415f5d..721f70bc

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=9599&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=9599&range=02-03

  Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/9599.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9599/head:pull/9599

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



More information about the build-dev mailing list