JDK-6791168 : Fix invalid code in bytecodeInterpreter that can cause gcc ICE
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs15
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux_ubuntu
  • CPU: generic
  • Submitted: 2009-01-07
  • Updated: 2012-10-08
  • Resolved: 2009-02-11
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 6 JDK 7 Other
6u18Fixed 7Fixed hs15Fixed
Description
From Matthias Klose <###@###.###>:

please see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38593
and
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38725

looks like current GCC versions accept invalid code:

"That's really a duplicate of PR38725: The code contains many lines of the form

  goto *dispatch_table[opcode];

where dispatch_table[opcode] is of the type uintptr_t which is a typedef
to unsigned int. Writing

  goto *(void*)dispatch_table[opcode];

instead makes the ICE disappear."

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/52a431267315
13-01-2009

EVALUATION Fixed some compilation errors in gcc 4.3 also. See: http://webrev.invokedynamic.info/coleenp/6791168
12-01-2009