Integrated: 8310673: [JVMCI] batch compilation for libgraal should work the same way as for C2

Doug Simon dnsimon at openjdk.org
Tue Oct 17 08:54:41 UTC 2023


On Mon, 16 Oct 2023 07:39:06 GMT, Doug Simon <dnsimon at openjdk.org> wrote:

> There's extra logic in the CompileBroker for waiting for blocking JVMCI compilations to try and prevent deadlock ([JDK-8148507](https://bugs.openjdk.org/browse/JDK-8148507)). However, this is not relevant for libgraal which does not run Java code that can be accessing locks used by other threads.
> 
> However, over time, this logic was extended to unblock a blocking compilation when a libgraal internal deadlock is detected. It turns out that this hides deadlocks or long compilations that should be solved in libgraal itself.
> 
> This PR makes blocking compilation with libgraal the same as blocking compilations for C1 and C2.
> 
> Testing: This has been tested for about 3 months against libgraal.

This pull request has now been integrated.

Changeset: 5521560a
Author:    Doug Simon <dnsimon at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/5521560abdbdad6b15ea5d70dd7305257d22b1ee
Stats:     4 lines in 1 file changed: 3 ins; 0 del; 1 mod

8310673: [JVMCI] batch compilation for libgraal should work the same way as for C2

Reviewed-by: thartmann, never

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

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


More information about the hotspot-compiler-dev mailing list