From 2e02c8ce27edbd57a7323d4f07add5a4e4ffa184 Mon Sep 17 00:00:00 2001 From: Tomas Zezula Date: Fri, 31 May 2024 14:59:12 +0200 Subject: [PATCH 1/2] [GR-54446] LibTruffleAttachResource should not use CompilerDirectives.shouldNotReachHere. --- .../com/oracle/truffle/runtime/LibTruffleAttachResource.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/LibTruffleAttachResource.java b/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/LibTruffleAttachResource.java index 6d471d8f8972..95c62595f357 100644 --- a/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/LibTruffleAttachResource.java +++ b/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/LibTruffleAttachResource.java @@ -40,7 +40,6 @@ */ package com.oracle.truffle.runtime; -import com.oracle.truffle.api.CompilerDirectives; import com.oracle.truffle.api.InternalResource; import java.io.IOException; @@ -70,7 +69,7 @@ public String versionHash(Env env) { Path base = basePath(env); return env.readResourceLines(base.resolve("sha256")).get(0); } catch (IOException ioe) { - throw CompilerDirectives.shouldNotReachHere(ioe); + throw new InternalError(ioe); } } From 23c73a422f70f6b4f879035a104dcad4a6418d01 Mon Sep 17 00:00:00 2001 From: David Leopoldseder Date: Mon, 3 Jun 2024 13:01:46 +0200 Subject: [PATCH 2/2] JDK-8333388 & GR-54466 make div option debug --- .../src/jdk/graal/compiler/core/common/GraalOptions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/core/common/GraalOptions.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/core/common/GraalOptions.java index 46ad0b73fa99..d9054a032d89 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/core/common/GraalOptions.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/core/common/GraalOptions.java @@ -323,6 +323,6 @@ public final class GraalOptions { public static final OptionKey OptimizeLongJumps = new OptionKey<>(false); @Option(help = "Optimize integer division operation by using various mathematical foundations to " - + " express it in faster, equivalent, arithmetic.", type = OptionType.Expert) + + " express it in faster, equivalent, arithmetic.", type = OptionType.Debug) public static final OptionKey OptimizeDiv = new OptionKey<>(true); }