JDK-8273795 : Zero SPARC64 debug builds fail due to missing interpreter fields
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-09-15
  • Updated: 2021-11-03
  • Resolved: 2021-09-16
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
11.0.14 b01Fixed
Related Reports
Relates :  
Description
Current Zero SPARC64 build fails with:

/home/buildbot/worker/build-jdk11u-dev-linux/build/src/hotspot/share/interpreter/bytecodeInterpreter.cpp: In member function 'void BytecodeInterpreter::print()':
/home/buildbot/worker/build-jdk11u-dev-linux/build/src/hotspot/share/interpreter/bytecodeInterpreter.cpp:3491:67: error: 'class BytecodeInterpreter' has no member named '_last_Java_pc'
 3491 |   tty->print_cr("last_Java_pc: " INTPTR_FORMAT, (uintptr_t) this->_last_Java_pc);
      |                                                                   ^~~~~~~~~~~~~
/home/buildbot/worker/build-jdk11u-dev-linux/build/src/hotspot/share/interpreter/bytecodeInterpreter.cpp:3492:67: error: 'class BytecodeInterpreter' has no member named '_frame_bottom'
 3492 |   tty->print_cr("frame_bottom: " INTPTR_FORMAT, (uintptr_t) this->_frame_bottom);
      |                                                                   ^~~~~~~~~~~~~
/home/buildbot/worker/build-jdk11u-dev-linux/build/src/hotspot/share/interpreter/bytecodeInterpreter.cpp:3493:71: error: 'class BytecodeInterpreter' has no member named '_native_fresult'
 3493 |   tty->print_cr("&native_fresult: " INTPTR_FORMAT, (uintptr_t) &this->_native_fresult);
      |                                                                       ^~~~~~~~~~~~~~~
/home/buildbot/worker/build-jdk11u-dev-linux/build/src/hotspot/share/interpreter/bytecodeInterpreter.cpp:3494:69: error: 'class BytecodeInterpreter' has no member named '_native_lresult'
 3494 |   tty->print_cr("native_lresult: " INTPTR_FORMAT, (uintptr_t) this->_native_lresult);
      |                                                                     ^~~~~~~~~~~~~~~

This is a SPARC-specific, Zero-specific, 11u-specific problem.

JDK-8074457 removed the fields with the non-zero C++ interpreter, which broke Zero build:
http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/d321ba06d890#l29.36

Mainline is not affected, because JDK-8244224 removed the SPARC support along with the affected block in bytecodeInterpreter.cpp. 

So we just want to fix it in 11u, I think.

Comments
Changeset: e3f923f9 Author: Aleksey Shipilev <shade@openjdk.org> Date: 2021-09-16 15:24:13 +0000 URL: https://git.openjdk.java.net/jdk11u/commit/e3f923f9dd24e3882b52bcc03ea47390a828c90b
03-11-2021

Changeset: e3f923f9 Author: Aleksey Shipilev <shade@openjdk.org> Date: 2021-09-16 15:24:13 +0000 URL: https://git.openjdk.java.net/jdk11u-dev/commit/e3f923f9dd24e3882b52bcc03ea47390a828c90b
16-09-2021

Fix Request (11u) Fixes one odd Zero configuration. 11u-specific patch, acked by Coleen.
16-09-2021