United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7046732 JSR 292 assert(result == cpce->f1()) failed: expected result for assembly code
JDK-7046732 : JSR 292 assert(result == cpce->f1()) failed: expected result for assembly code

Details
Type:
Bug
Submit Date:
2011-05-20
Status:
Closed
Updated Date:
2012-02-01
Project Name:
JDK
Resolved Date:
2011-06-09
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs21
Fixed Versions:
hs21 (b15)

Related Reports
Backport:
Backport:
Backport:

Sub Tasks

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

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.
                                     
2011-05-20
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/7db2b9499c36
                                     
2011-05-26
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.
                                     
2011-05-27
EVALUATION

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

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

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



Hardware and Software, Engineered to Work Together