JDK-8026978 : JSR292: fatal error: Type profiling not implemented on this platform
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-10-21
  • Updated: 2014-02-11
  • Resolved: 2013-10-24
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 8 Other
8Fixed hs25Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
mlvm tests fail w/ fatal error 'Type profiling not implemented on this platform' on not x86 arch, if 'TypeProfileLevel' specified as non zero value.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (c1_LIRAssembler_sparc.cpp:3104), pid=28309, tid=63
#  fatal error: Type profiling not implemented on this platform
#
# JRE version: Java(TM) SE Runtime Environment (8.0-b109) (build 1.8.0-ea-b109)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b55-internal-201310151915.vkozlov.8026293 mixed mode solaris-sparc compressed oops)
# Core dump written. Default location: /export/local/aurora/sandbox/results/ResultDir/b7092712/core or core.28309
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#


Comments
Regarding the lack of test case: turning on the option is all it takes on an unsupported platform to verify this fix .
11-02-2014

another manifestation of this bug on fastdebug build: # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (/tmp/jprt/P1/191558.vkozlov/s/src/share/vm/oops/methodData.cpp:894), pid=1151, tid=2 # Error: ShouldNotReachHere() # # JRE version: Java(TM) SE Runtime Environment (8.0-b109) (build 1.8.0-ea-fastdebug-b109) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b55-internal-201310151915.vkozlov.8026293-fastdebug mixed mode solaris-sparc compressed oops) # Core dump written. Default location: /export/local/aurora/sandbox/results/ResultDir/b7092712/core or core.1151 # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # --------------- T H R E A D --------------- Current thread (0x0000000100111800): JavaThread "main" [_thread_in_Java, id=2, stack(0xffffffff7df00000,0xffffffff7e000000)] Stack: [0xffffffff7df00000,0xffffffff7e000000], sp=0xffffffff7dffea50, free space=1018k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x1226de4] void VMError::report_and_die()+0x714 V [libjvm.so+0x715878] void report_vm_error(const char*,int,const char*,const char*)+0x78 V [libjvm.so+0xe508e0] ProfileData*DataLayout::data_in()+0x60 V [libjvm.so+0x9f0478] void InterpreterRuntime::verify_mdp(Method*,unsigned char*,unsigned char*)+0x310 j java.lang.invoke.DirectMethodHandle.internalMemberName(Ljava/lang/Object;)Ljava/lang/Object;+7 j java.lang.invoke.LambdaForm$DMH.invokeVirtual_L_L(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+7 j java.lang.invoke.LambdaForm$MH.linkToCallSite(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+10 j TestNew2.testIt()V+11 j Main.main([Ljava/lang/String;)V+21 v ~StubRoutines::call_stub V [libjvm.so+0xa07154] void JavaCalls::call_helper(JavaValue*,methodHandle*,JavaCallArguments*,Thread*)+0x6fc V [libjvm.so+0xa9ccd8] void jni_invoke_static(JNIEnv_*,JavaValue*,_jobject*,JNICallType,_jmethodID*,JNI_ArgumentPusher*,Thread*)+0xa90 V [libjvm.so+0xac6da4] jni_CallStaticVoidMethod+0x538 C [libjli.so+0x6848] JavaMain+0x578
21-10-2013

Stack: [0xffffffff74800000,0xffffffff74900000], sp=0xffffffff748fe2a0, free space=1016k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x1226de4] void VMError::report_and_die()+0x714 V [libjvm.so+0x715878] void report_vm_error(const char*,int,const char*,const char*)+0x78 V [libjvm.so+0x480198] void LIR_Assembler::emit_profile_type(LIR_OpProfileType*)+0x38 V [libjvm.so+0x46258c] void LIR_Assembler::emit_lir_list(LIR_List*)+0x1e4 V [libjvm.so+0x46218c] void LIR_Assembler::emit_code(BlockList*)+0xa4 V [libjvm.so+0x3fc048] int Compilation::emit_code_body()+0x110 V [libjvm.so+0x3fc8ac] int Compilation::compile_java_method()+0x774 V [libjvm.so+0x3fcb7c] void Compilation::compile_method()+0xac V [libjvm.so+0x3fd718] Compilation::Compilation(AbstractCompiler*,ciEnv*,ciMethod*,int,BufferBlob*)+0x2e8 V [libjvm.so+0x40065c] void Compiler::compile_method(ciEnv*,ciMethod*,int)+0x12c V [libjvm.so+0x68859c] void CompileBroker::invoke_compiler_on_method(CompileTask*)+0x594 V [libjvm.so+0x687a08] void CompileBroker::compiler_thread_loop()+0x4c0 V [libjvm.so+0x1171b00] void JavaThread::thread_main_inner()+0x268 V [libjvm.so+0x117181c] void JavaThread::run()+0x41c V [libjvm.so+0xf09490] java_start+0x258 Current CompileTask: C1: 11916 299 3 java.lang.invoke.LambdaForm$DMH/1252169911::invokeStatic_LL_L (27 bytes)
21-10-2013

I guess it woild be better if it was impossible to specify 'TypeProfileLevel' on unsupported platforms.
21-10-2013