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

Array accesses using sun.misc.Unsafe cause data corruption or SIGSEGV

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8u40, 8u60, 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux_ubuntu

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "1.8.0_40"
        Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
        Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

        FULL OS VERSION :
        Linux mtandy-desktop 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

        (Ubuntu 14.04 LTS)

        A DESCRIPTION OF THE PROBLEM :
        I want to process some data from OpenStreetMap using Java. To do this I need to load a latitude and longitude for about 3 billion nodes the world file defines. 3 billion entries is too much for a normal java array, so I resorted to sun.misc.unsafe after consulting http://mydailyjava.blogspot.co.uk/2013/12/sunmiscunsafe.html

        To test my implementation, I allocate space for 1 billion integers, write 1 billion integers and read them back checking they are identical.

        This works OK on OpenJDK 1.7, with no mismatches and no core dump, but on Hotspot 1.8 it fails with some mismatched entries, then a core dump.

        By OpenJDK 1.7 I mean:
        java version "1.7.0_75"
        OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~trusty1)
        OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

        THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: No

        THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

        REGRESSION. Last worked in version 7u75

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        0. Get a computer with 16gb of RAM.

        1. Place executable test case from below into HighMemoryTest.java

        2. Compile with: javac -source 1.7 -target 1.7 HighMemoryTest.java

        3. Execute with OpenJDK 1.7 like so: /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/bin/java HighMemoryTest

        Observe expected output; no segmentation fault.

        4. Execute with Hotspot 1.8 like so: /usr/lib/jvm/java-8-oracle/jre/bin/java HighMemoryTest

        Observe core dump.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        Expected results (observed from OpenJDK 1.7):

        $ /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/bin/java HighMemoryTest
        Allocation didn't cause an error. Pointer:140266477768720
        Final offset: 1000000000


        Actual results (observed from Hotspot 1.8):

        $ /usr/lib/jvm/java-8-oracle/jre/bin/java HighMemoryTest
        Allocation didn't cause an error. Pointer:140307145740304
        302444 => 140307146042748 => 0 vs 75611
        1209780 => 140307146950084 => 0 vs 302445
        4839124 => 140307150579428 => 0 vs 1209781
        19356500 => 140307165096804 => 0 vs 4839125
        77426004 => 140307223166308 => 0 vs 19356501
        309704020 => 140307455444324 => 0 vs 77426005
        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0x00007f9d1d10f527, pid=12118, tid=140313146947328

        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0x00007f9d1d10f527, pid=12118, tid=140313146947328
        #
        # JRE version: Java(TM) SE Runtime Environment (8.0_40-b25) (build 1.8.0_40-b25)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode linux-amd64 compressed oops)
        # Problematic frame:
        # J 17% C1 HighMemoryTest.main([Ljava/lang/String;)V (181 bytes) @ 0x00007f9d1d10f527 [0x00007f9d1d10e5e0+0xf47]
        #
        # 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.java.com/bugreport/crash.jsp
        #

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

        Current thread (0x00007f9d2c009800): JavaThread "main" [_thread_in_Java, id=12119, stack(0x00007f9d3337f000,0x00007f9d33480000)]

        siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00007f9cf4f02560

        Registers:
        RAX=0x00007f9c176ba564, RBX=0x00007f9d3347e7e0, RCX=0x0000000000000007, RDX=0x0000000000000004
        RSP=0x00007f9d3347e7e0, RBP=0x00007f9d3347e9b0, RSI=0x0000000000003f48, RDI=0x000000076cb93438
        R8 =0x0000000049d6d554, R9 =0x000000001275b555, R10=0x0000000000000001, R11=0x00007f9bcd94d010
        R12=0x0000000000000000, R13=0x00007f9d1d110174, R14=0x00007f9d3347e7d8, R15=0x00007f9d2c009800
        RIP=0x00007f9d1d10f527, EFLAGS=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
          TRAPNO=0x000000000000000e

        Top of Stack: (sp=0x00007f9d3347e7e0)
        0x00007f9d3347e7e0: 0000000000000050 00007f9d1d10e150
        0x00007f9d3347e7f0: 00007f9d3347e890 00007f9d3226a115
        0x00007f9d3347e800: 00007f9d3347e8b0 00007f9d1d01ead8
        0x00007f9d3347e810: 00007f9d1d0055d0 00007f9d00000000
        0x00007f9d3347e820: 00007f9d3347e8f0 00007f9d3347e8b0
        0x00007f9d3347e830: 0000000000000000 0000000000000000
        0x00007f9d3347e840: 0000000000000000 0000000000000000
        0x00007f9d3347e850: 00007f9d00000000 00007f9d1d01ea33
        0x00007f9d3347e860: 00007f9d1d0055d0 0000000000000016
        0x00007f9d3347e870: 0000000000000000 00007f9d1d10e150
        0x00007f9d3347e880: 00007f9d3347e948 00007f9d2c009800
        0x00007f9d3347e890: 00007f9d3347e8f0 000000000001275b
        0x00007f9d3347e8a0: 00007f9bcd94d010 000000076cb93438
        0x00007f9d3347e8b0: 000000076cb93438 000000001275b555
        0x00007f9d3347e8c0: 00007f9be00a8564 000000076cbdbc48
        0x00007f9d3347e8d0: 000000076cb9d2c0 000000001275b554
        0x00007f9d3347e8e0: 00007f9bcd94d010 000000076ce052d0
        0x00007f9d3347e8f0: 000000076cbdbd88 00007f9d1d0007a7
        0x00007f9d3347e900: 000000000001275a 00007f9bcd996d78
        0x00007f9d3347e910: 0000000000000000 0000000000000001
        0x00007f9d3347e920: 000000076cb9d2c0 0000000000000000
        0x00007f9d3347e930: 00007f9d3347e9b0 00007f9d1d0007a7
        0x00007f9d3347e940: 000000076cb93438 000000076cbd9018
        0x00007f9d3347e950: 0000000000001fa0 0000000000000000
        0x00007f9d3347e960: 00007f9d2c009800 00007f9d3347ea30
        0x00007f9d3347e970: 00007f9d3347ebf0 00007f9d3347e9f0
        0x00007f9d3347e980: 00007f9d3347e9f0 00007f9d3347ed38
        0x00007f9d3347e990: 00007f9d0000000a 00007f9d1b025688
        0x00007f9d3347e9a0: 00007f9d1d010c00 00007f9d3347eb78
        0x00007f9d3347e9b0: 00007f9d3347eb20 00007f9d31f3fa56
        0x00007f9d3347e9c0: 00007f9d00000001 00007f9d2c009800
        0x00007f9d3347e9d0: 00007f9d3347eb70 00007f9d3347ed30

        Instructions: (pc=0x00007f9d1d10f527)
        0x00007f9d1d10f507: 04 00 00 00 00 00 00 00 4c 8b d8 49 8b c0 48 0f
        0x00007f9d1d10f517: af c2 49 03 c3 48 3b 07 49 c1 e0 02 47 89 0c 03
        0x00007f9d1d10f527: 47 8b 2c 83 45 3b cd 48 ba 28 60 02 1b 9d 7f 00
        0x00007f9d1d10f537: 00 48 be d8 02 00 00 00 00 00 00 0f 84 0a 00 00

        Register to memory mapping:

        RAX=0x00007f9c176ba564 is an unknown value
        RBX=0x00007f9d3347e7e0 is pointing into the stack for thread: 0x00007f9d2c009800
        RCX=0x0000000000000007 is an unknown value
        RDX=0x0000000000000004 is an unknown value
        RSP=0x00007f9d3347e7e0 is pointing into the stack for thread: 0x00007f9d2c009800
        RBP=0x00007f9d3347e9b0 is pointing into the stack for thread: 0x00007f9d2c009800
        RSI=0x0000000000003f48 is an unknown value
        RDI=0x000000076cb93438 is an oop
        sun.misc.Unsafe
         - klass: 'sun/misc/Unsafe'
        R8 =0x0000000049d6d554 is an unknown value
        R9 =0x000000001275b555 is an unknown value
        R10=0x0000000000000001 is an unknown value
        R11=0x00007f9bcd94d010 is an unknown value
        R12=0x0000000000000000 is an unknown value
        R13=0x00007f9d1d110174 is at entry_point+7060 in (nmethod*)0x00007f9d1d10e150
        R14=0x00007f9d3347e7d8 is pointing into the stack for thread: 0x00007f9d2c009800
        R15=0x00007f9d2c009800 is a thread


        Stack: [0x00007f9d3337f000,0x00007f9d33480000], sp=0x00007f9d3347e7e0, free space=1021k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        J 17% C1 HighMemoryTest.main([Ljava/lang/String;)V (181 bytes) @ 0x00007f9d1d10f527 [0x00007f9d1d10e5e0+0xf47]
        v ~StubRoutines::call_stub
        V [libjvm.so+0x681a56] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x1056
        V [libjvm.so+0x6c36c2] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x362
        V [libjvm.so+0x6e00ca] jni_CallStaticVoidMethod+0x17a
        C [libjli.so+0x7bcc] JavaMain+0x80c
        C [libpthread.so.0+0x8182] start_thread+0xc2


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

        Java Threads: ( => current thread )
          0x00007f9d2c0cc800 JavaThread "Service Thread" daemon [_thread_blocked, id=12136, stack(0x00007f9d07cfd000,0x00007f9d07dfe000)]
          0x00007f9d2c0c7800 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=12135, stack(0x00007f9d07dfe000,0x00007f9d07eff000)]
          0x00007f9d2c0c5800 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=12134, stack(0x00007f9d07eff000,0x00007f9d08000000)]
          0x00007f9d2c0c3800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=12133, stack(0x00007f9d180ab000,0x00007f9d181ac000)]
          0x00007f9d2c0c0800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=12132, stack(0x00007f9d181ac000,0x00007f9d182ad000)]
          0x00007f9d2c0bf000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=12131, stack(0x00007f9d182ad000,0x00007f9d183ae000)]
          0x00007f9d2c087000 JavaThread "Finalizer" daemon [_thread_blocked, id=12130, stack(0x00007f9d18a90000,0x00007f9d18b91000)]
          0x00007f9d2c084800 JavaThread "Reference Handler" daemon [_thread_blocked, id=12129, stack(0x00007f9d18b91000,0x00007f9d18c92000)]
        =>0x00007f9d2c009800 JavaThread "main" [_thread_in_Java, id=12119, stack(0x00007f9d3337f000,0x00007f9d33480000)]

        Other Threads:
          0x00007f9d2c07f800 VMThread [stack: 0x00007f9d18c92000,0x00007f9d18d93000] [id=12128]
          0x00007f9d2c0cf000 WatcherThread [stack: 0x00007f9d07bfc000,0x00007f9d07cfd000] [id=12137]

        VM state:not at safepoint (normal execution)

        VM Mutex/Monitor currently owned by a thread: None

        Heap:
         PSYoungGen total 74752K, used 3870K [0x000000076cb80000, 0x0000000771e80000, 0x00000007c0000000)
          eden space 64512K, 6% used [0x000000076cb80000,0x000000076cf47ba8,0x0000000770a80000)
          from space 10240K, 0% used [0x0000000771480000,0x0000000771480000,0x0000000771e80000)
          to space 10240K, 0% used [0x0000000770a80000,0x0000000770a80000,0x0000000771480000)
         ParOldGen total 171008K, used 0K [0x00000006c6200000, 0x00000006d0900000, 0x000000076cb80000)
          object space 171008K, 0% used [0x00000006c6200000,0x00000006c6200000,0x00000006d0900000)
         Metaspace used 2459K, capacity 4490K, committed 4864K, reserved 1056768K
          class space used 266K, capacity 386K, committed 512K, reserved 1048576K

        Card table byte_map: [0x00007f9d1c830000,0x00007f9d1d000000] byte_map_base: 0x00007f9d191ff000

        Marking Bits: (ParMarkBitMap*) 0x00007f9d3285b6c0
         Begin Bits: [0x00007f9ce0310000, 0x00007f9ce4188000)
         End Bits: [0x00007f9ce4188000, 0x00007f9ce8000000)

        Polling page: 0x00007f9d334a2000

        CodeCache: size=245760Kb used=1118Kb max_used=1118Kb free=244641Kb
         bounds [0x00007f9d1d000000, 0x00007f9d1d270000, 0x00007f9d2c000000]
         total_blobs=247 nmethods=19 adapters=143
         compilation: enabled

        Compilation events (10 events):
        Event: 0.040 Thread 0x00007f9d2c0c7800 nmethod 11 0x00007f9d1d10c190 code [0x00007f9d1d10c2e0, 0x00007f9d1d10c3f0]
        Event: 0.041 Thread 0x00007f9d2c0c7800 12 3 java.util.Arrays::copyOfRange (63 bytes)
        Event: 0.042 Thread 0x00007f9d2c0c7800 nmethod 12 0x00007f9d1d10c8d0 code [0x00007f9d1d10cae0, 0x00007f9d1d10d618]
        Event: 0.634 Thread 0x00007f9d2c0c7800 13 3 HighMemoryTest::indexToOffset (8 bytes)
        Event: 0.634 Thread 0x00007f9d2c0c7800 nmethod 13 0x00007f9d1d10db50 code [0x00007f9d1d10dca0, 0x00007f9d1d10ddf0]
        Event: 0.634 Thread 0x00007f9d2c0c7800 16 1 HighMemoryTest::indexToOffset (8 bytes)
        Event: 0.635 Thread 0x00007f9d2c0c7800 nmethod 16 0x00007f9d1d10de90 code [0x00007f9d1d10dfe0, 0x00007f9d1d10e0f0]
        Event: 0.640 Thread 0x00007f9d2c0c7800 17 % 3 HighMemoryTest::main @ 49 (181 bytes)
        Event: 0.642 Thread 0x00007f9d2c0c7800 nmethod 17% 0x00007f9d1d10e150 code [0x00007f9d1d10e5e0, 0x00007f9d1d1112c8]
        Event: 0.642 Thread 0x00007f9d2c0c7800 18 3 HighMemoryTest::main (181 bytes)

        GC Heap History (0 events):
        No events

        Deoptimization events (0 events):
        No events

        Internal exceptions (2 events):
        Event: 0.024 Thread 0x00007f9d2c009800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x000000076cb92a38) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u40/2855/hotspot/src/shar
        Event: 0.024 Thread 0x00007f9d2c009800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x000000076cb92cc8) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u40/2855/hotspot/src/share/vm/prims/jni.cpp

        Events (10 events):
        Event: 0.042 loading class sun/reflect/UnsafeQualifiedStaticFieldAccessorImpl done
        Event: 0.042 loading class sun/reflect/UnsafeQualifiedStaticObjectFieldAccessorImpl done
        Event: 0.042 loading class java/util/HashMap$EntrySet
        Event: 0.042 loading class java/util/HashMap$EntrySet done
        Event: 0.042 loading class java/util/HashMap$EntryIterator
        Event: 0.042 loading class java/util/HashMap$HashIterator
        Event: 0.042 loading class java/util/HashMap$HashIterator done
        Event: 0.042 loading class java/util/HashMap$EntryIterator done
        Event: 0.634 loading class java/util/concurrent/ConcurrentHashMap$ForwardingNode
        Event: 0.634 loading class java/util/concurrent/ConcurrentHashMap$ForwardingNode done


        Dynamic libraries:
        00400000-00401000 r-xp 00000000 08:01 806744 /usr/lib/jvm/java-8-oracle/jre/bin/java
        00600000-00601000 rw-p 00000000 08:01 806744 /usr/lib/jvm/java-8-oracle/jre/bin/java
        0132c000-0134d000 rw-p 00000000 00:00 0 [heap]
        6c6200000-6d0900000 rw-p 00000000 00:00 0
        6d0900000-76cb80000 ---p 00000000 00:00 0
        76cb80000-771e80000 rw-p 00000000 00:00 0
        771e80000-7c0000000 ---p 00000000 00:00 0
        7c0000000-7c0080000 rw-p 00000000 00:00 0
        7c0080000-800000000 ---p 00000000 00:00 0
        7f9bcd94d000-7f9cbc000000 rw-p 00000000 00:00 0
        7f9cbc000000-7f9cbc021000 rw-p 00000000 00:00 0
        7f9cbc021000-7f9cc0000000 ---p 00000000 00:00 0
        7f9cc0000000-7f9cc0021000 rw-p 00000000 00:00 0
        7f9cc0021000-7f9cc4000000 ---p 00000000 00:00 0
        7f9cc4000000-7f9cc4021000 rw-p 00000000 00:00 0
        7f9cc4021000-7f9cc8000000 ---p 00000000 00:00 0
        7f9cc8000000-7f9cc8087000 rw-p 00000000 00:00 0
        7f9cc8087000-7f9ccc000000 ---p 00000000 00:00 0
        7f9ccc000000-7f9ccc036000 rw-p 00000000 00:00 0
        7f9ccc036000-7f9cd0000000 ---p 00000000 00:00 0
        7f9cd0000000-7f9cd0021000 rw-p 00000000 00:00 0
        7f9cd0021000-7f9cd4000000 ---p 00000000 00:00 0
        7f9cd4000000-7f9cd4021000 rw-p 00000000 00:00 0
        7f9cd4021000-7f9cd8000000 ---p 00000000 00:00 0
        7f9cd8000000-7f9cd8021000 rw-p 00000000 00:00 0
        7f9cd8021000-7f9cdc000000 ---p 00000000 00:00 0
        7f9cdc000000-7f9cdc021000 rw-p 00000000 00:00 0
        7f9cdc021000-7f9ce0000000 ---p 00000000 00:00 0
        7f9ce0310000-7f9ce8000000 rw-p 00000000 00:00 0
        7f9ce8000000-7f9ce8021000 rw-p 00000000 00:00 0
        7f9ce8021000-7f9cec000000 ---p 00000000 00:00 0
        7f9cec000000-7f9cec021000 rw-p 00000000 00:00 0
        7f9cec021000-7f9cf0000000 ---p 00000000 00:00 0
        7f9cf0000000-7f9cf0021000 rw-p 00000000 00:00 0
        7f9cf0021000-7f9cf4000000 ---p 00000000 00:00 0
        7f9cf8000000-7f9cf8021000 rw-p 00000000 00:00 0
        7f9cf8021000-7f9cfc000000 ---p 00000000 00:00 0
        7f9d00000000-7f9d00021000 rw-p 00000000 00:00 0
        7f9d00021000-7f9d04000000 ---p 00000000 00:00 0
        7f9d07978000-7f9d07bfc000 rw-p 00000000 00:00 0
        7f9d07bfc000-7f9d07bfd000 ---p 00000000 00:00 0
        7f9d07bfd000-7f9d07cfd000 rw-p 00000000 00:00 0 [stack:12137]
        7f9d07cfd000-7f9d07d00000 ---p 00000000 00:00 0
        7f9d07d00000-7f9d07dfe000 rw-p 00000000 00:00 0 [stack:12136]
        7f9d07dfe000-7f9d07e01000 ---p 00000000 00:00 0
        7f9d07e01000-7f9d07eff000 rw-p 00000000 00:00 0 [stack:12135]
        7f9d07eff000-7f9d07f02000 ---p 00000000 00:00 0
        7f9d07f02000-7f9d08000000 rw-p 00000000 00:00 0 [stack:12134]
        7f9d08000000-7f9d08021000 rw-p 00000000 00:00 0
        7f9d08021000-7f9d0c000000 ---p 00000000 00:00 0
        7f9d0c000000-7f9d0c021000 rw-p 00000000 00:00 0
        7f9d0c021000-7f9d10000000 ---p 00000000 00:00 0
        7f9d10000000-7f9d10021000 rw-p 00000000 00:00 0
        7f9d10021000-7f9d14000000 ---p 00000000 00:00 0
        7f9d14000000-7f9d14021000 rw-p 00000000 00:00 0
        7f9d14021000-7f9d18000000 ---p 00000000 00:00 0
        7f9d180ab000-7f9d180ae000 ---p 00000000 00:00 0
        7f9d180ae000-7f9d181ac000 rw-p 00000000 00:00 0 [stack:12133]
        7f9d181ac000-7f9d181af000 ---p 00000000 00:00 0
        7f9d181af000-7f9d182ad000 rw-p 00000000 00:00 0 [stack:12132]
        7f9d182ad000-7f9d182b0000 ---p 00000000 00:00 0
        7f9d182b0000-7f9d183ae000 rw-p 00000000 00:00 0 [stack:12131]
        7f9d183ae000-7f9d18a90000 r--p 00000000 08:01 532289 /usr/lib/locale/locale-archive
        7f9d18a90000-7f9d18a93000 ---p 00000000 00:00 0
        7f9d18a93000-7f9d18b91000 rw-p 00000000 00:00 0 [stack:12130]
        7f9d18b91000-7f9d18b94000 ---p 00000000 00:00 0
        7f9d18b94000-7f9d18c92000 rw-p 00000000 00:00 0 [stack:12129]
        7f9d18c92000-7f9d18c93000 ---p 00000000 00:00 0
        7f9d18c93000-7f9d1a9d7000 rw-p 00000000 00:00 0 [stack:12128]
        7f9d1a9d7000-7f9d1abaf000 r--s 03d09000 08:01 806966 /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar
        7f9d1abaf000-7f9d1b065000 rw-p 00000000 00:00 0
        7f9d1b065000-7f9d1b425000 ---p 00000000 00:00 0
        7f9d1b425000-7f9d1bbf4000 rw-p 00000000 00:00 0
        7f9d1bbf4000-7f9d1bbf5000 ---p 00000000 00:00 0
        7f9d1bbf5000-7f9d1bcf5000 rw-p 00000000 00:00 0 [stack:12127]
        7f9d1bcf5000-7f9d1bcf6000 ---p 00000000 00:00 0
        7f9d1bcf6000-7f9d1bdf6000 rw-p 00000000 00:00 0 [stack:12126]
        7f9d1bdf6000-7f9d1bdf7000 ---p 00000000 00:00 0
        7f9d1bdf7000-7f9d1bef7000 rw-p 00000000 00:00 0 [stack:12125]
        7f9d1bef7000-7f9d1bef8000 ---p 00000000 00:00 0
        7f9d1bef8000-7f9d1bff8000 rw-p 00000000 00:00 0 [stack:12124]
        7f9d1bff8000-7f9d1bff9000 ---p 00000000 00:00 0
        7f9d1bff9000-7f9d1c0f9000 rw-p 00000000 00:00 0 [stack:12123]
        7f9d1c0f9000-7f9d1c0fa000 ---p 00000000 00:00 0
        7f9d1c0fa000-7f9d1c1fa000 rw-p 00000000 00:00 0 [stack:12122]
        7f9d1c1fa000-7f9d1c1fb000 ---p 00000000 00:00 0
        7f9d1c1fb000-7f9d1c34f000 rw-p 00000000 00:00 0 [stack:12121]
        7f9d1c34f000-7f9d1c830000 ---p 00000000 00:00 0
        7f9d1c830000-7f9d1c884000 rw-p 00000000 00:00 0
        7f9d1c884000-7f9d1cd64000 ---p 00000000 00:00 0
        7f9d1cd64000-7f9d1cd8f000 rw-p 00000000 00:00 0
        7f9d1cd8f000-7f9d1cfff000 ---p 00000000 00:00 0
        7f9d1cfff000-7f9d1d000000 rw-p 00000000 00:00 0
        7f9d1d000000-7f9d1d270000 rwxp 00000000 00:00 0
        7f9d1d270000-7f9d2c000000 ---p 00000000 00:00 0
        7f9d2c000000-7f9d2c104000 rw-p 00000000 00:00 0
        7f9d2c104000-7f9d30000000 ---p 00000000 00:00 0
        7f9d3000e000-7f9d3005d000 rw-p 00000000 00:00 0
        7f9d3005d000-7f9d3005e000 ---p 00000000 00:00 0
        7f9d3005e000-7f9d30168000 rw-p 00000000 00:00 0 [stack:12120]
        7f9d30168000-7f9d3051e000 ---p 00000000 00:00 0
        7f9d3051e000-7f9d30538000 r-xp 00000000 08:01 806857 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
        7f9d30538000-7f9d30738000 ---p 0001a000 08:01 806857 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
        7f9d30738000-7f9d30739000 rw-p 0001a000 08:01 806857 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
        7f9d30739000-7f9d30744000 r-xp 00000000 08:01 131172 /lib/x86_64-linux-gnu/libnss_files-2.19.so
        7f9d30744000-7f9d30943000 ---p 0000b000 08:01 131172 /lib/x86_64-linux-gnu/libnss_files-2.19.so
        7f9d30943000-7f9d30944000 r--p 0000a000 08:01 131172 /lib/x86_64-linux-gnu/libnss_files-2.19.so
        7f9d30944000-7f9d30945000 rw-p 0000b000 08:01 131172 /lib/x86_64-linux-gnu/libnss_files-2.19.so
        7f9d30945000-7f9d30950000 r-xp 00000000 08:01 132287 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
        7f9d30950000-7f9d30b4f000 ---p 0000b000 08:01 132287 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
        7f9d30b4f000-7f9d30b50000 r--p 0000a000 08:01 132287 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
        7f9d30b50000-7f9d30b51000 rw-p 0000b000 08:01 132287 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
        7f9d30b51000-7f9d30b68000 r-xp 00000000 08:01 132082 /lib/x86_64-linux-gnu/libnsl-2.19.so
        7f9d30b68000-7f9d30d67000 ---p 00017000 08:01 132082 /lib/x86_64-linux-gnu/libnsl-2.19.so
        7f9d30d67000-7f9d30d68000 r--p 00016000 08:01 132082 /lib/x86_64-linux-gnu/libnsl-2.19.so
        7f9d30d68000-7f9d30d69000 rw-p 00017000 08:01 132082 /lib/x86_64-linux-gnu/libnsl-2.19.so
        7f9d30d69000-7f9d30d6b000 rw-p 00000000 00:00 0
        7f9d30d6b000-7f9d30d74000 r-xp 00000000 08:01 132081 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
        7f9d30d74000-7f9d30f73000 ---p 00009000 08:01 132081 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
        7f9d30f73000-7f9d30f74000 r--p 00008000 08:01 132081 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
        7f9d30f74000-7f9d30f75000 rw-p 00009000 08:01 132081 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
        7f9d30f75000-7f9d30f9f000 r-xp 00000000 08:01 806823 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
        7f9d30f9f000-7f9d3119f000 ---p 0002a000 08:01 806823 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
        7f9d3119f000-7f9d311a1000 rw-p 0002a000 08:01 806823 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
        7f9d311a1000-7f9d311ae000 r-xp 00000000 08:01 806838 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
        7f9d311ae000-7f9d313ae000 ---p 0000d000 08:01 806838 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
        7f9d313ae000-7f9d313b0000 rw-p 0000d000 08:01 806838 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
        7f9d313b0000-7f9d313b7000 r-xp 00000000 08:01 132283 /lib/x86_64-linux-gnu/librt-2.19.so
        7f9d313b7000-7f9d315b6000 ---p 00007000 08:01 132283 /lib/x86_64-linux-gnu/librt-2.19.so
        7f9d315b6000-7f9d315b7000 r--p 00006000 08:01 132283 /lib/x86_64-linux-gnu/librt-2.19.so
        7f9d315b7000-7f9d315b8000 rw-p 00007000 08:01 132283 /lib/x86_64-linux-gnu/librt-2.19.so
        7f9d315b8000-7f9d316bd000 r-xp 00000000 08:01 131162 /lib/x86_64-linux-gnu/libm-2.19.so
        7f9d316bd000-7f9d318bc000 ---p 00105000 08:01 131162 /lib/x86_64-linux-gnu/libm-2.19.so
        7f9d318bc000-7f9d318bd000 r--p 00104000 08:01 131162 /lib/x86_64-linux-gnu/libm-2.19.so
        7f9d318bd000-7f9d318be000 rw-p 00105000 08:01 131162 /lib/x86_64-linux-gnu/libm-2.19.so
        7f9d318be000-7f9d3256c000 r-xp 00000000 08:01 806855 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
        7f9d3256c000-7f9d3276b000 ---p 00cae000 08:01 806855 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
        7f9d3276b000-7f9d32842000 rw-p 00cad000 08:01 806855 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
        7f9d32842000-7f9d32886000 rw-p 00000000 00:00 0
        7f9d32886000-7f9d32a41000 r-xp 00000000 08:01 132279 /lib/x86_64-linux-gnu/libc-2.19.so
        7f9d32a41000-7f9d32c40000 ---p 001bb000 08:01 132279 /lib/x86_64-linux-gnu/libc-2.19.so
        7f9d32c40000-7f9d32c44000 r--p 001ba000 08:01 132279 /lib/x86_64-linux-gnu/libc-2.19.so
        7f9d32c44000-7f9d32c46000 rw-p 001be000 08:01 132279 /lib/x86_64-linux-gnu/libc-2.19.so
        7f9d32c46000-7f9d32c4b000 rw-p 00000000 00:00 0
        7f9d32c4b000-7f9d32c4e000 r-xp 00000000 08:01 131379 /lib/x86_64-linux-gnu/libdl-2.19.so
        7f9d32c4e000-7f9d32e4d000 ---p 00003000 08:01 131379 /lib/x86_64-linux-gnu/libdl-2.19.so
        7f9d32e4d000-7f9d32e4e000 r--p 00002000 08:01 131379 /lib/x86_64-linux-gnu/libdl-2.19.so
        7f9d32e4e000-7f9d32e4f000 rw-p 00003000 08:01 131379 /lib/x86_64-linux-gnu/libdl-2.19.so
        7f9d32e4f000-7f9d32e64000 r-xp 00000000 08:01 806817 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/jli/libjli.so
        7f9d32e64000-7f9d33064000 ---p 00015000 08:01 806817 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/jli/libjli.so
        7f9d33064000-7f9d33065000 rw-p 00015000 08:01 806817 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/jli/libjli.so
        7f9d33065000-7f9d3307e000 r-xp 00000000 08:01 132281 /lib/x86_64-linux-gnu/libpthread-2.19.so
        7f9d3307e000-7f9d3327d000 ---p 00019000 08:01 132281 /lib/x86_64-linux-gnu/libpthread-2.19.so
        7f9d3327d000-7f9d3327e000 r--p 00018000 08:01 132281 /lib/x86_64-linux-gnu/libpthread-2.19.so
        7f9d3327e000-7f9d3327f000 rw-p 00019000 08:01 132281 /lib/x86_64-linux-gnu/libpthread-2.19.so
        7f9d3327f000-7f9d33283000 rw-p 00000000 00:00 0
        7f9d33283000-7f9d332a6000 r-xp 00000000 08:01 132084 /lib/x86_64-linux-gnu/ld-2.19.so
        7f9d332ad000-7f9d3337f000 rw-p 00000000 00:00 0
        7f9d3337f000-7f9d33382000 ---p 00000000 00:00 0
        7f9d33382000-7f9d33484000 rw-p 00000000 00:00 0 [stack:12119]
        7f9d33496000-7f9d33499000 rw-p 00000000 00:00 0
        7f9d33499000-7f9d334a1000 rw-s 00000000 08:01 1320679 /tmp/hsperfdata_mtandy/12118
        7f9d334a1000-7f9d334a2000 rw-p 00000000 00:00 0
        7f9d334a2000-7f9d334a3000 r--p 00000000 00:00 0
        7f9d334a3000-7f9d334a5000 rw-p 00000000 00:00 0
        7f9d334a5000-7f9d334a6000 r--p 00022000 08:01 132084 /lib/x86_64-linux-gnu/ld-2.19.so
        7f9d334a6000-7f9d334a7000 rw-p 00023000 08:01 132084 /lib/x86_64-linux-gnu/ld-2.19.so
        7f9d334a7000-7f9d334a8000 rw-p 00000000 00:00 0
        7fff93e17000-7fff93e38000 rw-p 00000000 00:00 0 [stack]
        7fff93f1f000-7fff93f21000 r-xp 00000000 00:00 0 [vdso]
        ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

        VM Arguments:
        java_command: HighMemoryTest
        java_class_path (initial): .
        Launcher Type: SUN_STANDARD

        Environment Variables:
        PATH=/home/mtandy/apps/google-cloud-sdk/bin:/home/mtandy/bin:/home/mtandy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
        LD_LIBRARY_PATH=/opt/AMDAPPSDK-2.9-1/lib/x86_64/
        SHELL=/bin/bash
        DISPLAY=:0

        Signal Handlers:
        SIGSEGV: [libjvm.so+0xaad2e0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGBUS: [libjvm.so+0xaad2e0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGFPE: [libjvm.so+0x90b550], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGPIPE: [libjvm.so+0x90b550], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGXFSZ: [libjvm.so+0x90b550], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGILL: [libjvm.so+0x90b550], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
        SIGUSR2: [libjvm.so+0x90cb90], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
        SIGHUP: [libjvm.so+0x90dee0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGINT: [libjvm.so+0x90dee0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGTERM: [libjvm.so+0x90dee0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGQUIT: [libjvm.so+0x90dee0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO


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

        OS:DISTRIB_ID=Ubuntu
        DISTRIB_RELEASE=14.04
        DISTRIB_CODENAME=trusty
        DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"

        uname:Linux 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64
        libc:glibc 2.19 NPTL 2.19
        rlimit: STACK 8192k, CORE 0k, NPROC 127762, NOFILE 4096, AS infinity
        load average:0.01 0.47 0.47

        /proc/meminfo:
        MemTotal: 16375168 kB
        MemFree: 3113176 kB
        Buffers: 1193184 kB
        Cached: 3555828 kB
        SwapCached: 0 kB
        Active: 9610620 kB
        Inactive: 2561580 kB
        Active(anon): 7424632 kB
        Inactive(anon): 54800 kB
        Active(file): 2185988 kB
        Inactive(file): 2506780 kB
        Unevictable: 80 kB
        Mlocked: 80 kB
        SwapTotal: 19529720 kB
        SwapFree: 19529720 kB
        Dirty: 520 kB
        Writeback: 0 kB
        AnonPages: 7423544 kB
        Mapped: 327992 kB
        Shmem: 56252 kB
        Slab: 768572 kB
        SReclaimable: 717556 kB
        SUnreclaim: 51016 kB
        KernelStack: 4680 kB
        PageTables: 44400 kB
        NFS_Unstable: 0 kB
        Bounce: 0 kB
        WritebackTmp: 0 kB
        CommitLimit: 27717304 kB
        Committed_AS: 11001284 kB
        VmallocTotal: 34359738367 kB
        VmallocUsed: 123044 kB
        VmallocChunk: 34359502044 kB
        HardwareCorrupted: 0 kB
        AnonHugePages: 5533696 kB
        HugePages_Total: 0
        HugePages_Free: 0
        HugePages_Rsvd: 0
        HugePages_Surp: 0
        Hugepagesize: 2048 kB
        DirectMap4k: 88720 kB
        DirectMap2M: 1949696 kB
        DirectMap1G: 14680064 kB


        CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 60 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, rtm, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2

        /proc/cpuinfo:
        processor : 0
        vendor_id : GenuineIntel
        cpu family : 6
        model : 60
        model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
        stepping : 3
        microcode : 0x16
        cpu MHz : 800.000
        cache size : 8192 KB
        physical id : 0
        siblings : 8
        core id : 0
        cpu cores : 4
        apicid : 0
        initial apicid : 0
        fpu : yes
        fpu_exception : yes
        cpuid level : 13
        wp : yes
        flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm
        bogomips : 6784.60
        clflush size : 64
        cache_alignment : 64
        address sizes : 39 bits physical, 48 bits virtual
        power management:

        processor : 1
        vendor_id : GenuineIntel
        cpu family : 6
        model : 60
        model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
        stepping : 3
        microcode : 0x16
        cpu MHz : 800.000
        cache size : 8192 KB
        physical id : 0
        siblings : 8
        core id : 1
        cpu cores : 4
        apicid : 2
        initial apicid : 2
        fpu : yes
        fpu_exception : yes
        cpuid level : 13
        wp : yes
        flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm
        bogomips : 6784.60
        clflush size : 64
        cache_alignment : 64
        address sizes : 39 bits physical, 48 bits virtual
        power management:

        processor : 2
        vendor_id : GenuineIntel
        cpu family : 6
        model : 60
        model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
        stepping : 3
        microcode : 0x16
        cpu MHz : 3401.000
        cache size : 8192 KB
        physical id : 0
        siblings : 8
        core id : 2
        cpu cores : 4
        apicid : 4
        initial apicid : 4
        fpu : yes
        fpu_exception : yes
        cpuid level : 13
        wp : yes
        flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm
        bogomips : 6784.60
        clflush size : 64
        cache_alignment : 64
        address sizes : 39 bits physical, 48 bits virtual
        power management:

        processor : 3
        vendor_id : GenuineIntel
        cpu family : 6
        model : 60
        model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
        stepping : 3
        microcode : 0x16
        cpu MHz : 1200.000
        cache size : 8192 KB
        physical id : 0
        siblings : 8
        core id : 3
        cpu cores : 4
        apicid : 6
        initial apicid : 6
        fpu : yes
        fpu_exception : yes
        cpuid level : 13
        wp : yes
        flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm
        bogomips : 6784.60
        clflush size : 64
        cache_alignment : 64
        address sizes : 39 bits physical, 48 bits virtual
        power management:

        processor : 4
        vendor_id : GenuineIntel
        cpu family : 6
        model : 60
        model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
        stepping : 3
        microcode : 0x16
        cpu MHz : 800.000
        cache size : 8192 KB
        physical id : 0
        siblings : 8
        core id : 0
        cpu cores : 4
        apicid : 1
        initial apicid : 1
        fpu : yes
        fpu_exception : yes
        cpuid level : 13
        wp : yes
        flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm
        bogomips : 6784.60
        clflush size : 64
        cache_alignment : 64
        address sizes : 39 bits physical, 48 bits virtual
        power management:

        processor : 5
        vendor_id : GenuineIntel
        cpu family : 6
        model : 60
        model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
        stepping : 3
        microcode : 0x16
        cpu MHz : 3401.000
        cache size : 8192 KB
        physical id : 0
        siblings : 8
        core id : 1
        cpu cores : 4
        apicid : 3
        initial apicid : 3
        fpu : yes
        fpu_exception : yes
        cpuid level : 13
        wp : yes
        flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm
        bogomips : 6784.60
        clflush size : 64
        cache_alignment : 64
        address sizes : 39 bits physical, 48 bits virtual
        power management:

        processor : 6
        vendor_id : GenuineIntel
        cpu family : 6
        model : 60
        model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
        stepping : 3
        microcode : 0x16
        cpu MHz : 3401.000
        cache size : 8192 KB
        physical id : 0
        siblings : 8
        core id : 2
        cpu cores : 4
        apicid : 5
        initial apicid : 5
        fpu : yes
        fpu_exception : yes
        cpuid level : 13
        wp : yes
        flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm
        bogomips : 6784.60
        clflush size : 64
        cache_alignment : 64
        address sizes : 39 bits physical, 48 bits virtual
        power management:

        processor : 7
        vendor_id : GenuineIntel
        cpu family : 6
        model : 60
        model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
        stepping : 3
        microcode : 0x16
        cpu MHz : 800.000
        cache size : 8192 KB
        physical id : 0
        siblings : 8
        core id : 3
        cpu cores : 4
        apicid : 7
        initial apicid : 7
        fpu : yes
        fpu_exception : yes
        cpuid level : 13
        wp : yes
        flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm
        bogomips : 6784.60
        clflush size : 64
        cache_alignment : 64
        address sizes : 39 bits physical, 48 bits virtual
        power management:



        Memory: 4k page, physical 16375168k(3113176k free), swap 19529720k(19529720k free)

        vm_info: Java HotSpot(TM) 64-Bit Server VM (25.40-b25) for linux-amd64 JRE (1.8.0_40-b25), built on Feb 10 2015 21:29:53 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)

        time: Tue Mar 31 12:47:23 2015
        elapsed time: 0 seconds (0d 0h 0m 0s)


        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        import java.lang.reflect.Field;
        import sun.misc.Unsafe;

        public class HighMemoryTest {
            private static final int SIZE_OF_INT_IN_BYTES = 4;
            
            private static final long arraySize = 1000000000L;
            
            public static void main(String[] args) throws Exception {
                final Unsafe unsafe = getUnsafe();
                final long pointer = unsafe.allocateMemory(SIZE_OF_INT_IN_BYTES * arraySize);
                unsafe.setMemory(pointer, SIZE_OF_INT_IN_BYTES * arraySize, (byte)0x0);
                System.out.println("Allocation didn't cause an error. Pointer:" + pointer);

                long index;
                for (index=0 ; index<arraySize ; index++) {
                    int toPut = (int)index;
                    long offset = indexToOffset(pointer,index);
                    
                    unsafe.putInt(offset, toPut);
                    int readback = unsafe.getInt(offset);
                    
                    if (toPut != readback) {
                        System.out.println(index + " => " + offset + " => " + readback + " vs " + toPut );
                    }
                }

                System.out.println("Final offset: " + index);
            }
            
            static long indexToOffset(long pointer, long index) {
                return pointer + (index * SIZE_OF_INT_IN_BYTES);
            }
            
            private static Unsafe getUnsafe() {
                try {
                    Field theUnsafe = Unsafe.class.getDeclaredField("theUnsafe");
                    theUnsafe.setAccessible(true);
                    Unsafe unsafe = (Unsafe) theUnsafe.get(null);
                    return unsafe;
                } catch (Exception e) {
                    throw new RuntimeException(e);
                }
            }
            
        }
        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        Downgrade to 1.7

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  zmajo Zoltan Majo (Inactive)
                  Reporter:
                  webbuggrp Webbug Group
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: