JDK-8214787 : Zero builds fail with "undefined JavaThread::thread_state()"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11,12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-12-04
  • Updated: 2020-11-20
  • Resolved: 2018-12-04
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 12
11.0.10Fixed 12 b23Fixed
Related Reports
Relates :  
Relates :  
Description
aarch64-zero:

In file included from /home/shade/jdk-jdk/src/hotspot/share/interpreter/interpreterRuntime.hpp:34:0,
                 from /home/shade/jdk-jdk/src/hotspot/cpu/zero/stack_zero.cpp:28:
/home/shade/jdk-jdk/src/hotspot/share/runtime/thread.hpp:1226:26: warning: inline function 'JavaThreadState JavaThread::thread_state() const' used but never defined
   inline JavaThreadState thread_state() const;
                          ^~~~~~~~~~~~

Comments
Fix Request (11u) Seeing the same failure on Linux aarch64 zero in 11u. Patch applies cleanly and fixes the build issue.
19-11-2020

RFR: http://mail.openjdk.java.net/pipermail/hotspot-dev/2018-December/035642.html
04-12-2018

Candidate fix: diff -r 981eb3c1b90d src/hotspot/cpu/zero/stack_zero.cpp --- a/src/hotspot/cpu/zero/stack_zero.cpp Tue Dec 04 07:06:38 2018 -0500 +++ b/src/hotspot/cpu/zero/stack_zero.cpp Tue Dec 04 15:18:29 2018 +0100 @@ -24,11 +24,11 @@ */ #include "precompiled.hpp" #include "interpreter/bytecodeInterpreter.hpp" #include "interpreter/interpreterRuntime.hpp" -#include "runtime/thread.hpp" +#include "runtime/thread.inline.hpp" #include "stack_zero.hpp" #include "stack_zero.inline.hpp" #include "runtime/frame.inline.hpp" #include "utilities/align.hpp"
04-12-2018