[foreign-memaccess+abi] Integrated: Switch to daemon threads for async upcalls
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Tue Mar 29 20:23:14 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).
This pull request has now been integrated.
Changeset: 028fe2e4
Author: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL: https://git.openjdk.java.net/panama-foreign/commit/028fe2e403f0788dbf980d82cff7dcd72f245b58
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Switch to daemon threads for async upcalls
Reviewed-by: jvernee
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/673
More information about the panama-dev
mailing list