Integrated: JDK-8326376: java -version failed with CONF=fastdebug -XX:InitialCodeCacheSize=1024K -XX:ReservedCodeCacheSize=1200k
Thomas Stuefe
stuefe at openjdk.org
Thu Feb 22 17:47:58 UTC 2024
On Wed, 21 Feb 2024 08:16:27 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> Please review this fix of a regression brought by https://bugs.openjdk.org/browse/JDK-8318444. Thanks to @sunny868 for reporting this.
>
> We bail out during compiler initialization of C2. The thread's ciEnv does not have a CompileTask associated in that case, and that's why we are faulting.
>
> I tested the patch on Linux x64 and confirmed the fix. I also tested with a compiler memory ceiling and the crash option (see https://bugs.openjdk.org/browse/JDK-8318016) and confirmed that the hs-err file contains valid compile ids when we have a valid compile task.
This pull request has now been integrated.
Changeset: d695af89
Author: Thomas Stuefe <stuefe at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/d695af89f6463591e870f631dc816c7729e33567
Stats: 21 lines in 3 files changed: 15 ins; 0 del; 6 mod
8326376: java -version failed with CONF=fastdebug -XX:InitialCodeCacheSize=1024K -XX:ReservedCodeCacheSize=1200k
Reviewed-by: kvn, jwaters
-------------
PR: https://git.openjdk.org/jdk/pull/17941
More information about the hotspot-compiler-dev
mailing list