Integrated: 8286063: check compiler queue after calling AbstractCompiler::on_empty_queue

Doug Simon dnsimon at openjdk.java.net
Wed May 4 04:59:32 UTC 2022


On Tue, 3 May 2022 14:07:30 GMT, Doug Simon <dnsimon at openjdk.org> wrote:

> [JDK-8242440](https://bugs.openjdk.java.net/browse/JDK-8242440) added support for a JIT compiler to be notified when a `CompilerThread` has an empty compilation queue. It's possible for an implementation of `AbstractCompiler::on_empty_queue` to temporarily release `MethodCompileQueue_lock` (e.g. [here](https://github.com/openjdk/jdk/blob/357b1b18c20233f16fba872b79237e9459f5ba43/src/hotspot/share/jvmci/jvmciCompiler.cpp#L174)). This means a non-CompilerThread has a chance to enqueue a new compilation task. As such, the `CompilerThread` should check for this after calling `AbstractCompiler::on_empty_queue`.

This pull request has now been integrated.

Changeset: 4282fb2b
Author:    Doug Simon <dnsimon at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/4282fb2b0d0e517d255be7c882c141722e9c9b46
Stats:     5 lines in 1 file changed: 5 ins; 0 del; 0 mod

8286063: check compiler queue after calling AbstractCompiler::on_empty_queue

Reviewed-by: kvn

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

PR: https://git.openjdk.java.net/jdk/pull/8517


More information about the hotspot-compiler-dev mailing list