JDK-8269140 : VM build without C2 fails after JDK-8268405
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2021-06-22
  • Updated: 2024-01-26
  • Resolved: 2021-06-22
Related Reports
Duplicate :  
Description
==========
configure
==========

using configure arguments '--with-boot-jdk=/mnt/share/openjdk/packages/boot-jdk/aarch64/jdk17 --with-debug-level=release --with-gtest=/mnt/share/openjdk/tools/googletest --with-jvm-features=-compiler2 --disable-precompiled-headers'.

Configuration summary:
* Name:          jdk/build
* Debug level:    release
* HS debug level: product
* JVM variants:   server
* JVM features:   server: 'cds compiler1 epsilongc g1gc jfr jni-check jvmci jvmti management nmt parallelgc serialgc services shenandoahgc vm-structs zgc'
* OpenJDK target: OS: linux, CPU architecture: aarch64, address length: 64
* Version string: 18-internal+0-adhoc.haosun01.jdksrc (18-internal)

Tools summary:
* Boot JDK:       openjdk version "17-internal" 2021-09-14 OpenJDK Runtime Environment (build 17-internal+0-git-b18de6cf7) OpenJDK 64-Bit Server VM (build 17-internal+0-git-b18de6cf7, mixed mode, sharing) (at /mnt/share/openjdk/packages/boot-jdk/aarch64/jdk17)
* Toolchain:      gcc (GNU Compiler Collection)
* C Compiler:     Version 10.2.0 (at /usr/bin/gcc)
* C++ Compiler:   Version 10.2.0 (at /usr/bin/g++)


============
error
============
=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_deoptimization.o:
jdk_src/src/hotspot/share/runtime/deoptimization.cpp: In static member function 'static void Deoptimization::uncommon_trap_inner(JavaThread*, jint)':
jdk_src/src/hotspot/share/runtime/deoptimization.cpp:1960:43: error: 'VerifyReceiverTypes' was not declared in this scope
 1960 |     bool is_receiver_constraint_failure = VerifyReceiverTypes && (reason == Deoptimization::Reason_receiver_constraint);
      |                                           ^~~~~~~~~~~~~~~~~~~