[foreign-memaccess+abi] RFR: Switch to daemon threads for async upcalls

Jorn Vernee jvernee at openjdk.java.net
Tue Mar 29 18:28:43 UTC 2022


On Tue, 29 Mar 2022 18:19:06 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> In a previous PR (https://git.openjdk.java.net/panama-foreign/pull/570), when merging code I forgot to re-apply the change to attach the thread as daemon thread instead of as ordinary thread.
> As described previously, the daemon thread semantics is the preferred one: if the JVM waits for all background threads to stop in order to shutdown, there are cases where native libraries might not cleanup their background threads, and rely on process termination instead - which leads to a circularity (and the process never terminates).

Marked as reviewed by jvernee (Committer).

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

PR: https://git.openjdk.java.net/panama-foreign/pull/673


More information about the panama-dev mailing list