Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8044379

Fatal VMError: ShouldNotReachHere() when using -XX:+PrintInlining

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 7u51
    • Fix Version/s: 7u60
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      os_x

      Description

      FULL PRODUCT VERSION :
      java version "1.7.0_51"
      Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

      FULL OS VERSION :
      Darwin MACHINENAME 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64

      A DESCRIPTION OF THE PROBLEM :
      Fatal VM crash when loading a class in a hot loop with -XX:+PrintInlining enabled.

      THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: No

      THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Paste the source code into CHA.java, then:
      javac CHA.java
      java -XX:+UnlockDiagnosticVMOptions -XX:+PrintInlining CHA

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      java -XX:+UnlockDiagnosticVMOptions -XX:+PrintInlining CHA
                                  @ 66 java.lang.String::indexOfSupplementary (71 bytes) too big
      AddOperation loaded
                                  @ 37 AddOperation::perform (4 bytes) inline (hot)
                                   \-> TypeProfile (12346/12346 counts) = AddOperation
                                  @ 51 java.lang.System::nanoTime (0 bytes) (intrinsic)
      5807000 ns
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (compile.hpp:420), pid=1724, tid=18179
      # Error: ShouldNotReachHere()
      #
      # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode bsd-amd64 compressed oops)
      # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # An error report file with more information is saved as:
      # /Users/bonifaido/Desktop/linux-vagrant/jit/hs_err_pid1724.log
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.sun.com/bugreport/crash.jsp
      #
      [1] 1724 abort java -XX:+UnlockDiagnosticVMOptions -XX:+PrintInlining CHA
      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (compile.hpp:420), pid=1318, tid=18179
      # Error: ShouldNotReachHere()
      #
      # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode bsd-amd64 compressed oops)
      # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # 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 (0x00007fcc79846000): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=18179, stack(0x0000000116ac8000,0x0000000116bc8000)]

      Stack: [0x0000000116ac8000,0x0000000116bc8000], sp=0x0000000116bc6020, free space=1016k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x524ef9] VMError::report_and_die()+0x5d5
      V [libjvm.dylib+0x1ec18d] report_vm_error(char const*, int, char const*, char const*)+0x54
      V [libjvm.dylib+0x16925d] Compile::print_inlining_insert(CallGenerator*)+0x7d
      V [libjvm.dylib+0x1671fa] LateInlineCallGenerator::do_late_inline()+0x2d6
      V [libjvm.dylib+0x1b9931] Compile::inline_string_calls(bool)+0x14b
      V [libjvm.dylib+0x1bc9ab] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool)+0x6f9
      V [libjvm.dylib+0x166477] C2Compiler::compile_method(ciEnv*, ciMethod*, int)+0x9d
      V [libjvm.dylib+0x1bfc84] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x3e0
      V [libjvm.dylib+0x1c19c6] CompileBroker::compiler_thread_loop()+0x12c
      V [libjvm.dylib+0x4efb57] JavaThread::thread_main_inner()+0x9b
      V [libjvm.dylib+0x4f125f] JavaThread::run()+0x1a3
      V [libjvm.dylib+0x41b1d6] java_start(Thread*)+0x126
      C [libsystem_pthread.dylib+0x1899] _pthread_body+0x8a
      C [libsystem_pthread.dylib+0x172a] _pthread_struct_init+0x0
      C [libsystem_pthread.dylib+0x5fc9] thread_start+0xd


      Current CompileTask:
      C2: 1367 5 % CHA::benchmark @ 32 (104 bytes)


      --------------- P R O C E S S ---------------

      Java Threads: ( => current thread )
        0x00007fcc79868800 JavaThread "Service Thread" daemon [_thread_blocked, id=19203, stack(0x0000000116cce000,0x0000000116dce000)]
        0x00007fcc79867800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=18691, stack(0x0000000116bcb000,0x0000000116ccb000)]
      =>0x00007fcc79846000 JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=18179, stack(0x0000000116ac8000,0x0000000116bc8000)]
        0x00007fcc79018800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=17667, stack(0x00000001169c5000,0x0000000116ac5000)]
        0x00007fcc79015800 JavaThread "Finalizer" daemon [_thread_blocked, id=12547, stack(0x0000000116776000,0x0000000116876000)]
        0x00007fcc79013000 JavaThread "Reference Handler" daemon [_thread_blocked, id=12035, stack(0x0000000116673000,0x0000000116773000)]
        0x00007fcc7a000000 JavaThread "main" [_thread_in_Java, id=6403, stack(0x000000010f480000,0x000000010f580000)]

      Other Threads:
        0x00007fcc7983c000 VMThread [stack: 0x0000000116570000,0x0000000116670000] [id=11523]
        0x00007fcc79017800 WatcherThread [stack: 0x0000000116dd1000,0x0000000116ed1000] [id=19715]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap
       PSYoungGen total 10240K, used 762K [0x00000007f5500000, 0x00000007f6000000, 0x0000000800000000)
        eden space 9216K, 8% used [0x00000007f5500000,0x00000007f55be800,0x00000007f5e00000)
        from space 1024K, 0% used [0x00000007f5f00000,0x00000007f5f00000,0x00000007f6000000)
        to space 1024K, 0% used [0x00000007f5e00000,0x00000007f5e00000,0x00000007f5f00000)
       ParOldGen total 21504K, used 0K [0x00000007e0000000, 0x00000007e1500000, 0x00000007f5500000)
        object space 21504K, 0% used [0x00000007e0000000,0x00000007e0000000,0x00000007e1500000)
       PSPermGen total 21504K, used 2549K [0x00000007dae00000, 0x00000007dc300000, 0x00000007e0000000)
        object space 21504K, 11% used [0x00000007dae00000,0x00000007db07d550,0x00000007dc300000)

      Card table byte_map: [0x0000000113913000,0x0000000113a3d000] byte_map_base: 0x000000010fa3c000

      Polling page: 0x000000010f5bf000

      Code Cache [0x0000000110853000, 0x0000000110ac3000, 0x0000000113853000)
       total_blobs=184 nmethods=4 adapters=135 free_code_cache=48767Kb largest_free_block=49923776

      Compilation events (9 events):
      Event: 0.280 Thread 0x00007fcc79846000 1 java.lang.String::hashCode (55 bytes)
      Event: 0.310 Thread 0x00007fcc79846000 nmethod 1 0x00000001108b3550 code [0x00000001108b36a0, 0x00000001108b3818]
      Event: 0.316 Thread 0x00007fcc79867800 2 java.lang.String::indexOf (70 bytes)
      Event: 0.319 Thread 0x00007fcc79867800 nmethod 2 0x00000001108b3150 code [0x00000001108b32a0, 0x00000001108b3448]
      Event: 0.848 Thread 0x00007fcc79846000 3 AddOperation::perform (4 bytes)
      Event: 0.849 Thread 0x00007fcc79846000 nmethod 3 0x00000001108b2f50 code [0x00000001108b3080, 0x00000001108b30d8]
      Event: 0.849 Thread 0x00007fcc79867800 4 % CHA::benchmark @ 32 (104 bytes)
      Event: 0.854 Thread 0x00007fcc79867800 nmethod 4% 0x00000001108b2bd0 code [0x00000001108b2d20, 0x00000001108b2e58]
      Event: 1.356 Thread 0x00007fcc79846000 5 % CHA::benchmark @ 32 (104 bytes)

      GC Heap History (0 events):
      No events

      Deoptimization events (1 events):
      Event: 0.855 Thread 0x00007fcc7a000000 Uncommon trap: reason=unloaded action=reinterpret pc=0x00000001108b2e00 method=CHA.benchmark()V @ 64

      Internal exceptions (10 events):
      Event: 0.320 Thread 0x00007fcc7a000000 Threw 0x00000007f5592490 at /HUDSON/workspace/7u-2-build-macosx-x86_64/jdk7u51/527/hotspot/src/share/vm/prims/jvm.cpp:1244
      Event: 0.324 Thread 0x00007fcc7a000000 Threw 0x00000007f5593150 at /HUDSON/workspace/7u-2-build-macosx-x86_64/jdk7u51/527/hotspot/src/share/vm/prims/jni.cpp:717
      Event: 0.324 Thread 0x00007fcc7a000000 Threw 0x00000007f5593270 at /HUDSON/workspace/7u-2-build-macosx-x86_64/jdk7u51/527/hotspot/src/share/vm/prims/jvm.cpp:1244
      Event: 0.324 Thread 0x00007fcc7a000000 Threw 0x00000007f5593398 at /HUDSON/workspace/7u-2-build-macosx-x86_64/jdk7u51/527/hotspot/src/share/vm/prims/jvm.cpp:1244
      Event: 0.333 Thread 0x00007fcc7a000000 Threw 0x00000007f55a5cb8 at /HUDSON/workspace/7u-2-build-macosx-x86_64/jdk7u51/527/hotspot/src/share/vm/prims/jni.cpp:717
      Event: 0.333 Thread 0x00007fcc7a000000 Threw 0x00000007f55a5dd8 at /HUDSON/workspace/7u-2-build-macosx-x86_64/jdk7u51/527/hotspot/src/share/vm/prims/jvm.cpp:1244
      Event: 0.333 Thread 0x00007fcc7a000000 Threw 0x00000007f55a5f00 at /HUDSON/workspace/7u-2-build-macosx-x86_64/jdk7u51/527/hotspot/src/share/vm/prims/jvm.cpp:1244
      Event: 0.333 Thread 0x00007fcc7a000000 Threw 0x00000007f55a6150 at /HUDSON/workspace/7u-2-build-macosx-x86_64/jdk7u51/527/hotspot/src/share/vm/prims/jvm.cpp:1244
      Event: 0.342 Thread 0x00007fcc7a000000 Threw 0x00000007f55ab510 at /HUDSON/workspace/7u-2-build-macosx-x86_64/jdk7u51/527/hotspot/src/share/vm/prims/jvm.cpp:1244
      Event: 0.344 Thread 0x00007fcc7a000000 Threw 0x00000007f55ad850 at /HUDSON/workspace/7u-2-build-macosx-x86_64/jdk7u51/527/hotspot/src/share/vm/prims/jvm.cpp:1244

      Events (10 events):
      Event: 0.341 loading class 0x0000000115305bc0 done
      Event: 0.342 loading class 0x00007fcc7861ef90
      Event: 0.342 loading class 0x00007fcc7861ef90 done
      Event: 0.343 loading class 0x00000001152eeae0
      Event: 0.343 loading class 0x00000001152eeae0 done
      Event: 0.344 loading class 0x00007fcc7861ef50
      Event: 0.344 loading class 0x00007fcc7861ef50 done
      Event: 0.855 Thread 0x00007fcc7a000000 Uncommon trap: trap_request=0x00000010 fr.pc=0x00000001108b2e00
      Event: 0.855 Thread 0x00007fcc7a000000 DEOPT PACKING pc=0x00000001108b2e00 sp=0x000000010f57f990
      Event: 0.855 Thread 0x00007fcc7a000000 DEOPT UNPACKING pc=0x000000011088c045 sp=0x000000010f57f940 mode 2


      Dynamic libraries:
      0x000000000cacb000 /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
      0x000000000cacb000 /System/Library/Frameworks/Security.framework/Versions/A/Security
      0x000000000cacb000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
      0x000000000cacb000 /usr/lib/libz.1.dylib
      0x000000000cacb000 /usr/lib/libSystem.B.dylib
      0x000000000cacb000 /usr/lib/libobjc.A.dylib
      0x000000000cacb000 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
      0x000000000cacb000 /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
      0x000000000cacb000 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
      0x000000000cacb000 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
      0x000000000cacb000 /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
      0x000000000cacb000 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
      0x000000000cacb000 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
      0x000000000cacb000 /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
      0x000000000cacb000 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
      0x000000000cacb000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
      0x000000000cacb000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
      0x000000000cacb000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
      0x000000000cacb000 /usr/lib/libauto.dylib
      0x000000000cacb000 /usr/lib/libicucore.A.dylib
      0x000000000cacb000 /usr/lib/libxml2.2.dylib
      0x000000000cacb000 /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
      0x000000000cacb000 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
      0x000000000cacb000 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
      0x000000000cacb000 /usr/lib/liblangid.dylib
      0x000000000cacb000 /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
      0x000000000cacb000 /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
      0x000000000cacb000 /usr/lib/libDiagnosticMessagesClient.dylib
      0x000000000cacb000 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
      0x000000000cacb000 /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
      0x000000000cacb000 /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
      0x000000000cacb000 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
      0x000000000cacb000 /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
      0x000000000cacb000 /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
      0x000000000cacb000 /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
      0x000000000cacb000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
      0x000000000cacb000 /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
      0x000000000cacb000 /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
      0x000000000cacb000 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
      0x000000000cacb000 /usr/lib/libCRFSuite.dylib
      0x000000000cacb000 /usr/lib/libc++.1.dylib
      0x000000000cacb000 /usr/lib/libc++abi.dylib
      0x000000000cacb000 /usr/lib/system/libcache.dylib
      0x000000000cacb000 /usr/lib/system/libcommonCrypto.dylib
      0x000000000cacb000 /usr/lib/system/libcompiler_rt.dylib
      0x000000000cacb000 /usr/lib/system/libcopyfile.dylib
      0x000000000cacb000 /usr/lib/system/libcorecrypto.dylib
      0x000000000cacb000 /usr/lib/system/libdispatch.dylib
      0x000000000cacb000 /usr/lib/system/libdyld.dylib
      0x000000000cacb000 /usr/lib/system/libkeymgr.dylib
      0x000000000cacb000 /usr/lib/system/liblaunch.dylib
      0x000000000cacb000 /usr/lib/system/libmacho.dylib
      0x000000000cacb000 /usr/lib/system/libquarantine.dylib
      0x000000000cacb000 /usr/lib/system/libremovefile.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_asl.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_blocks.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_c.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_configuration.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_dnssd.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_info.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_kernel.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_m.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_malloc.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_network.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_notify.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_platform.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_pthread.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_sandbox.dylib
      0x000000000cacb000 /usr/lib/system/libsystem_stats.dylib
      0x000000000cacb000 /usr/lib/system/libunc.dylib
      0x000000000cacb000 /usr/lib/system/libunwind.dylib
      0x000000000cacb000 /usr/lib/system/libxpc.dylib
      0x000000000cacb000 /usr/lib/libbsm.0.dylib
      0x000000000cacb000 /usr/lib/libsqlite3.dylib
      0x000000000cacb000 /usr/lib/libxar.1.dylib
      0x000000000cacb000 /usr/lib/libpam.2.dylib
      0x000000000cacb000 /usr/lib/libOpenScriptingUtil.dylib
      0x000000000cacb000 /usr/lib/libbz2.1.0.dylib
      0x000000000cacb000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
      0x000000000cacb000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
      0x000000000cacb000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
      0x000000000cacb000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
      0x000000000cacb000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
      0x000000000cacb000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
      0x000000000cacb000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
      0x000000000cacb000 /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
      0x000000000cacb000 /usr/lib/system/libkxld.dylib
      0x000000000cacb000 /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
      0x000000000cacb000 /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
      0x000000000cacb000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
      0x000000000cacb000 /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
      0x000000000cacb000 /usr/lib/libxslt.1.dylib
      0x000000000cacb000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
      0x000000000cacb000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
      0x000000000cacb000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
      0x000000000cacb000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
      0x000000000cacb000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
      0x000000000cacb000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
      0x000000000cacb000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
      0x000000000cacb000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
      0x000000000cacb000 /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
      0x000000000cacb000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
      0x000000000cacb000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
      0x000000000cacb000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
      0x000000000cacb000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
      0x000000000cacb000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
      0x000000000cacb000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
      0x000000000cacb000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
      0x000000000cacb000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
      0x000000000cacb000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
      0x000000000cacb000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
      0x000000000cacb000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
      0x000000000cacb000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
      0x000000000cacb000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
      0x000000000cacb000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
      0x000000000cacb000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
      0x000000000cacb000 /usr/lib/libcups.2.dylib
      0x000000000cacb000 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
      0x000000000cacb000 /System/Library/Frameworks/GSS.framework/Versions/A/GSS
      0x000000000cacb000 /usr/lib/libresolv.9.dylib
      0x000000000cacb000 /usr/lib/libiconv.2.dylib
      0x000000000cacb000 /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
      0x000000000cacb000 /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
      0x000000000cacb000 /usr/lib/libheimdal-asn1.dylib
      0x000000000cacb000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
      0x000000000cacb000 /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
      0x000000000cacb000 /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
      0x000000000cacb000 /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
      0x000000000cacb000 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
      0x000000000cacb000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/Versions/A/CoreImage
      0x000000000cacb000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/ScalableUserInterface.framework/Versions/A/ScalableUserInterface
      0x000000000cacb000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
      0x000000000cacb000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
      0x000000000cacb000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
      0x000000000cacb000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
      0x000000000cacb000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
      0x000000000cacb000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
      0x000000000cacb000 /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
      0x000000000cacb000 /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
      0x000000000cacb000 /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
      0x000000000cacb000 /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
      0x000000000cacb000 /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity
      0x000000000cacb000 /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
      0x000000000cacb000 /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
      0x000000000cacb000 /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
      0x000000000cacb000 /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
      0x000000000cacb000 /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
      0x000000010fe00000 /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/server/libjvm.dylib
      0x000000000cacb000 /usr/lib/libstdc++.6.dylib
      0x000000010f582000 /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/libverify.dylib
      0x000000010f58f000 /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/libjava.dylib
      0x000000010f5c9000 /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/libzip.dylib
      0x0000000116878000 /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/JavaRuntimeSupport
      0x0000000116890000 /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
      0x00000001168a5000 /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
      0x000000000cacb000 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
      0x00000001168b2000 /System/Library/PrivateFrameworks/JavaLaunching.framework/Versions/A/JavaLaunching
      0x000000000cacb000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
      0x000000000cacb000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
      0x000000000cacb000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
      0x000000000cacb000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
      0x000000000cacb000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
      0x000000000cacb000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI

      VM Arguments:
      jvm_args: -XX:+UnlockDiagnosticVMOptions -XX:+PrintInlining
      java_command: CHA
      Launcher Type: SUN_STANDARD

      Environment Variables:
      JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
      PATH=/Users/bonifaido/bin:/Users/bonifaido/bin/maestro-cli/bin:/bin:/usr/local/sbin:/Users/bonifaido/.gem/ruby/2.0.0/bin:/Users/bonifaido/Code/go:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
      SHELL=/bin/zsh

      Signal Handlers:
      SIGSEGV: [libjvm.dylib+0x525425], sa_mask[0]=0xfffefeff, sa_flags=0x00000043
      SIGBUS: [libjvm.dylib+0x525425], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGFPE: [libjvm.dylib+0x41892a], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGPIPE: [libjvm.dylib+0x41892a], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGXFSZ: [libjvm.dylib+0x41892a], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGILL: [libjvm.dylib+0x41892a], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000002
      SIGUSR2: [libjvm.dylib+0x41841c], sa_mask[0]=0x00000000, sa_flags=0x00000042
      SIGHUP: [libjvm.dylib+0x4166ab], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGINT: [libjvm.dylib+0x4166ab], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGTERM: [libjvm.dylib+0x4166ab], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGQUIT: [libjvm.dylib+0x4166ab], sa_mask[0]=0xfffefeff, sa_flags=0x00000042


      --------------- S Y S T E M ---------------

      OS:Bsduname:Darwin 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
      rlimit: STACK 8192k, CORE 0k, NPROC 266, NOFILE 10240, AS infinity
      load average:1.18 1.28 1.13

      CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, ht, tsc, tscinvbit

      Memory: 4k page, physical 2097152k(524288k free)

      /proc/meminfo:


      vm_info: Java HotSpot(TM) 64-Bit Server VM (24.51-b03) for bsd-amd64 JRE (1.7.0_51-b13), built on Dec 18 2013 18:45:56 by "java_re" with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

      time: Thu May 29 09:50:05 2014
      elapsed time: 1 seconds


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class CHA {

          static Operation operation;
          static int result;

          public static void main(String[] args) throws Exception {
              operation = new AddOperation();
              benchmark();
          }

          public static void benchmark() throws Exception {
              for (int i = 0; i < 10; i++) {
                  if (i == 7) Class.forName("SubstractOperation");
                  long start = System.nanoTime();
                  for (int j = 0; j < 1000000; j++) {
                      result = operation.perform(j, 1);
                  }
                  long end = System.nanoTime();
                  System.out.println((end - start) + " ns");
              }
              System.out.println(result);
          }
      }

      interface Operation {
          int perform(int a, int b);
      }

      class AddOperation implements Operation {

          static {
              System.out.println("AddOperation loaded");
          }

          @Override
          public int perform(int a, int b) {
              return a + b;
          }
      }

      class SubstractOperation implements Operation {

          static {
              System.out.println("SubstractOperation loaded");
          }

          @Override
          public int perform(int a, int b) {
              return a - b;
          }
      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Removed -XX:+PrintInlining

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vkempik Vladimir Kempik
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: