JDK-8298568 : Fastdebug build fails after JDK-8296389
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,21
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2022-12-12
  • Updated: 2022-12-19
  • Resolved: 2022-12-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 21
17.0.7-oracleFixed 21 b02Fixed
Related Reports
Duplicate :  
Relates :  
Description
Compiling up to 330 files for java.management
Updating support/src.zip
Updating support/modules_libs/java.base/server/libjvm.so due to 8 file(s)
/home/realfyang/openjdk-jdk/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp: In function 'bool has_never_branch(Node*)':
/home/realfyang/openjdk-jdk/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp:2005:92: error: 'class Node' has no member named 'isNeverBranch'; did you mean 'is_NeverBranch'?
 2005 |     if (in != NULL && in->Opcode() == Op_Halt && in->in(0)->is_Proj() && in->in(0)->in(0)->isNeverBranch()) {
      |                                                                                            ^~~~~~~~~~~~~
      |                                                                                            is_NeverBranch
make[3]: *** [lib/CompileJvm.gmk:147: /home/realfyang/openjdk-jdk/build/linux-aarch64-server-slowdebug/hotspot/variant-server/libjvm/objs/shenandoahSupport.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [make/Main.gmk:252: hotspot-server-libs] Error 2

ERROR: Build failed for target 'images' in configuration 'linux-aarch64-server-slowdebug' (exit code 2)
Stopping javac server

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_shenandoahSupport.o:
/home/realfyang/openjdk-jdk/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp: In function 'bool has_never_branch(Node*)':
/home/realfyang/openjdk-jdk/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp:2005:92: error: 'class Node' has no member named 'isNeverBranch'; did you mean 'is_NeverBranch'?
 2005 |     if (in != NULL && in->Opcode() == Op_Halt && in->in(0)->is_Proj() && in->in(0)->in(0)->isNeverBranch()) {
      |                                                                                            ^~~~~~~~~~~~~
      |                                                                                            is_NeverBranch

* All command lines available in /home/realfyang/openjdk-jdk/build/linux-aarch64-server-slowdebug/make-support/failure-logs.
=== End of repeated output ===

No indication of failed target found.
HELP: Try searching the build log for '] Error'.
HELP: Run 'make doctor' to diagnose build problems.

make[1]: *** [/home/realfyang/openjdk-jdk/make/Init.gmk:320: main] Error 2
make: *** [/home/realfyang/openjdk-jdk/make/Init.gmk:186: images] Error 2

Proposed fix is trivial:
diff --git a/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp b/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp
index 31c480a488a..d443bb8aa33 100644
--- a/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp
+++ b/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp
@@ -2002,7 +2002,7 @@ Node* ShenandoahIUBarrierNode::Identity(PhaseGVN* phase) {
 static bool has_never_branch(Node* root) {
   for (uint i = 1; i < root->req(); i++) {
     Node* in = root->in(i);
-    if (in != NULL && in->Opcode() == Op_Halt && in->in(0)->is_Proj() && in->in(0)->in(0)->isNeverBranch()) {
+    if (in != NULL && in->Opcode() == Op_Halt && in->in(0)->is_Proj() && in->in(0)->in(0)->is_NeverBranch()) {
       return true;
     }
   }
Comments
ILW = build failure; shenandoah only; no workaround = MMH = P3
13-12-2022

Changeset: 173778e2 Author: Fei Yang <fyang@openjdk.org> Date: 2022-12-13 00:57:02 +0000 URL: https://git.openjdk.org/jdk/commit/173778e2fee58e47d35197b78eb23f46154b5b2b
13-12-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/11631 Date: 2022-12-12 12:37:51 +0000
12-12-2022