Integrated: 8252543: [JVMCI] Libgraal can deadlock in blocking compilation mode
Doug Simon
dnsimon at openjdk.java.net
Sat Sep 12 05:29:16 UTC 2020
On Sun, 6 Sep 2020 19:48:08 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
> To prevent a deadlock in libgraal under `-Xcomp` or `-Xbatch` due to a lock being held in libgraal, a new mechanism is
> added by this change that allow JVMCI compiler threads to communicate their "progress" to HotSpot:
> * Each JVMCI compiler thread has a "compilation ticks" counter.
> * There is also a global JVMCI compilation ticks counter.
> * Each JVMCI VM call increments the JVMCI compiler thread-local compilation ticks counter.
> * Every 512 increments of such a counter also increments the global counter.
> * A thread waiting on a blocking JVMCI compilation will be unblocked if these counters indicate no progress after a
> defined period.
This pull request has now been integrated.
Changeset: 998ce78e
Author: Doug Simon <dnsimon at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/998ce78e
Stats: 126 lines in 11 files changed: 14 ins; 72 del; 40 mod
8252543: [JVMCI] Libgraal can deadlock in blocking compilation mode
Reviewed-by: kvn
-------------
PR: https://git.openjdk.java.net/jdk/pull/35
More information about the hotspot-compiler-dev
mailing list