JDK-6970101 : CTW fails assert(is_static() && is_constant()) failed: illegal call to constant_value() #
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs19
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: x86
  • Submitted: 2010-07-19
  • Updated: 2011-01-19
  • Resolved: 2010-07-19
Related Reports
Duplicate :  
Description
During nightly ctw crashes during compilation of some JSR 292 specific code.
It would be nice to generate any warning for such code or more clear message.

The report is:

;; Using jvm: "/export/local/common/jdk/baseline/solaris-sparcv9/jre/lib/sparcv9/server/libjvm.so"
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/tmp/jprt/P1/B/014300.jrose/source/src/share/vm/ci/ciField.hpp:141), pid=28502, tid=14
#  assert(is_static() && is_constant()) failed: illegal call to constant_value()
#
# JRE version: 7.0
# Java VM: OpenJDK 64-Bit Server VM (19.0-b02-201007170143.jrose.indy-deopt-6969574-fastdebug mixed mode solaris-sparc )
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x000000010083f800):  JavaThread "CompilerThread1" daemon [_thread_in_native, id=14, stack(0xffffffff3dc00000,0xffffffff3dd00000)]

Stack: [0xffffffff3dc00000,0xffffffff3dd00000],  sp=0xffffffff3dcf7890,  free space=3deffffffff7e5068f8k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xede42c];;  __1cHVMErrorOreport_and_die6M_v_+0x6bc
V  [libjvm.so+0x514a20];;  __1cPreport_vm_error6Fpkci11_v_+0x78
V  [libjvm.so+0xaa0d74];;  __1cHciFieldOconstant_value6M_nKciConstant__+0x54
V  [libjvm.so+0xa9618c];;  __1cQPhaseMacroExpandSscalar_replacement6MpnMAllocateNode_rnNGrowableArray4CpnNSafePointNode____b_+0x584
V  [libjvm.so+0xa980d0];;  __1cQPhaseMacroExpandXeliminate_allocate_node6MpnMAllocateNode__b_+0xf8
V  [libjvm.so+0xa9e7c0];;  __1cQPhaseMacroExpandSexpand_macro_nodes6M_b_+0x358
V  [libjvm.so+0x467ba0];;  __1cHCompileIOptimize6M_v_+0xff0
V  [libjvm.so+0x462c34];;  __1cHCompile2t6MpnFciEnv_pnKC2Compiler_pnIciMethod_ibb_v_+0xc34
V  [libjvm.so+0x3169ec];;  __1cKC2CompilerOcompile_method6MpnFciEnv_pnIciMethod_i_v_+0xb4
V  [libjvm.so+0x475f44];;  __1cNCompileBrokerZinvoke_compiler_on_method6FpnLCompileTask__v_+0xe5c
V  [libjvm.so+0x474b10];;  __1cNCompileBrokerUcompiler_thread_loop6F_v_+0x960
V  [libjvm.so+0xe2e8dc];;  __1cKJavaThreadRthread_main_inner6M_v_+0x174
V  [libjvm.so+0xe2e748];;  __1cKJavaThreadDrun6M_v_+0x310
V  [libjvm.so+0xbe8eac];;  java_start+0x184


Current CompileTask:
C2:1204   b  sun.dyn.FromGeneric.of(Ljava/dyn/MethodType;)Lsun/dyn/FromGeneric; (33 bytes)

Here is the example:
http://sqeweb.sfbay.sun.com/nfs/results/vm/gtee/JDK7/NIGHTLY/VM/2010-07-17/Comp_Baseline/ctw/solaris-sparcv9/server/comp/solaris-sparcv9_ctw_server_comp_nightly.testlist/analysis.html

These tests fail:
ctw/jdk7/rt_jar/sun_dyn_FromGeneric
ctw/jdk7/rt_jar/sun_dyn_SpreadGeneric