JDK-8227815 : Minimal VM: set_state is not a member of AttachListener
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: 14
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-07-17
  • Updated: 2023-10-03
  • Resolved: 2019-07-18
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 11 JDK 14 JDK 8 Other
11.0.13-oracleFixed 14 b07Fixed 8u401Fixed na,openjdk8u332Resolved
Related Reports
Duplicate :  
Relates :  
Description
minimal build is broken after JDK-8225690. Output:

$ make hotspot CONF=linux-x86_64-minimal-release
Building target 'hotspot' in configuration 'linux-x86_64-minimal-release'
/home/aoqi/jdk/src/hotspot/share/runtime/os.cpp: In function 'void signal_thread_entry(JavaThread*, Thread*)':
/home/aoqi/jdk/src/hotspot/share/runtime/os.cpp:367:43: error: 'transit_state' is not a member of 'AttachListener'
           AttachListenerState cur_state = AttachListener::transit_state(AL_INITIALIZING, AL_NOT_INITIALIZED);
                                           ^
/home/aoqi/jdk/src/hotspot/share/runtime/os.cpp:376:15: error: 'set_state' is not a member of 'AttachListener'
               AttachListener::set_state(AL_NOT_INITIALIZED);
               ^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-misleading-indentation" [enabled by default]
cc1plus: warning: unrecognized command line option "-Wno-implicit-fallthrough" [enabled by default]
cc1plus: warning: unrecognized command line option "-Wno-int-in-bool-context" [enabled by default]
gmake[3]: *** [/home/aoqi/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/os.o] Error 1
gmake[2]: *** [hotspot-minimal-libs] Error 1

ERROR: Build failed for target 'hotspot' in configuration 'linux-x86_64-minimal-release' (exit code 2) 

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-minimal_libjvm_objs_os.o:
/home/aoqi/jdk/src/hotspot/share/runtime/os.cpp: In function 'void signal_thread_entry(JavaThread*, Thread*)':
/home/aoqi/jdk/src/hotspot/share/runtime/os.cpp:367:43: error: 'transit_state' is not a member of 'AttachListener'
           AttachListenerState cur_state = AttachListener::transit_state(AL_INITIALIZING, AL_NOT_INITIALIZED);
                                           ^
/home/aoqi/jdk/src/hotspot/share/runtime/os.cpp:376:15: error: 'set_state' is not a member of 'AttachListener'
               AttachListener::set_state(AL_NOT_INITIALIZED);
               ^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-misleading-indentation" [enabled by default]
cc1plus: warning: unrecognized command line option "-Wno-implicit-fallthrough" [enabled by default]
cc1plus: warning: unrecognized command line option "-Wno-int-in-bool-context" [enabled by default]

* All command lines available in /home/aoqi/jdk/build/linux-x86_64-minimal-release/make-support/failure-logs.
=== End of repeated output ===

No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.

make[1]: *** [main] Error 1
make: *** [hotspot] Error 2

Comments
Changeset: 6d91071b Author: Yasumasa Suenaga <ysuenaga@openjdk.org> Date: 2019-07-18 21:25:41 +0000 URL: https://git.openjdk.org/shenandoah-jdk8u/commit/6d91071bea5a7f2f13bdf755f7da02cbe4cd364c
01-09-2022

Fix Request (8u): Backport to jdk8u. This is a follow-up backport. Low risk. See details in https://mail.openjdk.java.net/pipermail/jdk8u-dev/2021-November/014412.html.
11-11-2021

Fix Request (11u): Should get backported for parity with 11.0.13-oracle. Required for backport of JDK-8225690. Applies cleanly.
20-07-2021

URL: https://hg.openjdk.java.net/jdk/jdk/rev/2660d47140da User: ysuenaga Date: 2019-07-18 12:26:12 +0000
18-07-2019