JDK-7046732 : JSR 292 assert(result == cpce->f1()) failed: expected result for assembly code
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs21
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-05-20
  • Updated: 2012-02-01
  • Resolved: 2011-06-09
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 7 JDK 8 Other
7Fixed 8Fixed hs21Fixed
Description
JSR 292 tests are failing with:

Java HotSpot(TM) 64-Bit Server VM warning: JSR 292 method handle code is mismatched to this JVM.  Disabling support.
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/interpreterRuntime.cpp:144
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (.../source/src/share/vm/interpreter/interpreterRuntime.cpp:144), pid=28478, tid=140602251757904
#  assert(result == cpce->f1()) failed: expected result for assembly code
#
# JRE version: 7.0-b142
# Java VM: Java HotSpot(TM) 64-Bit Server VM (21.0-b13-internal-...-fastdebug compiled mode linux-amd64 )

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/7db2b9499c36
09-06-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/7db2b9499c36
03-06-2011

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/7db2b9499c36
28-05-2011

EVALUATION 7046732: JSR 292 assert(result == cpce->f1()) failed: expected result for assembly code Reviewed-by: kvn, iveresov, jrose The assert doesn't hold when the resolve_constant throws an exception. It should be using CHECK instead of THREAD so that it returns immediately. Also the Bytecode_loadconstant isn't GC safe so build a new one for the assertion logic. Tested with failing test case.
27-05-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/7db2b9499c36
26-05-2011

EVALUATION The assert doesn't hold when the resolve_constant throws an exception. It should probably be using CHECK instead of THREAD so that it returns immediately.
20-05-2011