Skip to content

Instantly share code, notes, and snippets.

@rednaxelafx
Created June 8, 2012 16:55
Show Gist options
  • Save rednaxelafx/2896853 to your computer and use it in GitHub Desktop.
Save rednaxelafx/2896853 to your computer and use it in GitHub Desktop.
adding an int field after _metadata in oopDesc crashes the VM on x64
diff -r e1635876b206 src/share/vm/oops/oop.hpp
--- a/src/share/vm/oops/oop.hpp Wed Jun 06 15:57:37 2012 -0700
+++ b/src/share/vm/oops/oop.hpp Sat Jun 09 00:58:33 2012 +0800
@@ -66,6 +66,7 @@
wideKlassOop _klass;
narrowOop _compressed_klass;
} _metadata;
+ int _foo; // add a new private field here
// Fast access to barrier set. Must be initialized.
static BarrierSet* _bs;
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/media/Data/build/xxxtemphs/src/share/vm/gc_interface/collectedHeap.inline.hpp:244), pid=12157, tid=47342970935040
# assert(size >= hs) failed: unexpected object size
#
# JRE version: 6.0_25-b06
# Java VM: OpenJDK 64-Bit Server VM (24.0-b12-internal-fastdebug mixed mode linux-amd64 compressed oops)
# Core dump written. Default location: /media/Data/build/xxxtemphs/make/linux/linux_amd64_compiler2/fastdebug/core or core.12157
#
# 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 (0x0000000001875800): JavaThread "Unknown thread" [_thread_in_vm, id=12158, stack(0x00002b0ee4e71000,0x00002b0ee4f72000)]
Stack: [0x00002b0ee4e71000,0x00002b0ee4f72000], sp=0x00002b0ee4f70710, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xcab1e6] VMError::report_and_die()+0x176
V [libjvm.so+0x5f12f3] report_vm_error(char const*, int, char const*, char const*)+0x83
V [libjvm.so+0x54050f] CollectedHeap::init_obj(HeapWord*, unsigned long)+0x10f
V [libjvm.so+0xc6d3bb] typeArrayKlass::allocate_permanent(int, Thread*)+0x5ab
V [libjvm.so+0xc72950] Universe::genesis(Thread*)+0x400
V [libjvm.so+0xc741b4] universe2_init()+0x34
V [libjvm.so+0x7629da] init_globals()+0xda
V [libjvm.so+0xc508e2] Threads::create_vm(JavaVMInitArgs*, bool*)+0x1d2
V [libjvm.so+0x7e0a9e] JNI_CreateJavaVM+0x9e
C [gamma+0x45a6] printf@@GLIBC_2.2.5+0x45a6
C [gamma+0x33d3] JavaMain+0xba
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
Other Threads:
=>0x0000000001875800 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=12158, stack(0x00002b0ee4e71000,0x00002b0ee4f72000)]
VM state:not at safepoint (not fully initialized)
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x0000000001872758] Compile_lock - owner thread: 0x0000000001875800
GC Heap History (0 events):
No events
Deoptimization events (0 events):
No events
Internal exceptions (0 events):
No events
Events (0 events):
No events
Dynamic libraries:
00400000-00408000 r-xp 00000000 08:04 10911093 /media/Data/build/xxxtemphs/make/linux/linux_amd64_compiler2/fastdebug/gamma
00607000-00608000 r--p 00007000 08:04 10911093 /media/Data/build/xxxtemphs/make/linux/linux_amd64_compiler2/fastdebug/gamma
00608000-00609000 rw-p 00008000 08:04 10911093 /media/Data/build/xxxtemphs/make/linux/linux_amd64_compiler2/fastdebug/gamma
0186a000-018ac000 rw-p 00000000 00:00 0 [heap]
77fe00000-7812c0000 rw-p 00000000 00:00 0
7812c0000-785000000 rw-p 00000000 00:00 0
785000000-78a200000 rw-p 00000000 00:00 0
78a200000-7d7000000 rw-p 00000000 00:00 0
7d7000000-7d98f0000 rw-p 00000000 00:00 0
7d98f0000-800000000 rw-p 00000000 00:00 0
2b0ee2f23000-2b0ee2f43000 r-xp 00000000 08:01 2093133 /lib/ld-2.12.1.so
2b0ee2f43000-2b0ee2f45000 rw-p 00000000 00:00 0
2b0ee3143000-2b0ee3144000 r--p 00020000 08:01 2093133 /lib/ld-2.12.1.so
2b0ee3144000-2b0ee3145000 rw-p 00021000 08:01 2093133 /lib/ld-2.12.1.so
2b0ee3145000-2b0ee3146000 rw-p 00000000 00:00 0
2b0ee3146000-2b0ee40d7000 r-xp 00000000 08:04 10911088 /media/Data/build/xxxtemphs/make/linux/linux_amd64_compiler2/fastdebug/libjvm.so
2b0ee40d7000-2b0ee42d6000 ---p 00f91000 08:04 10911088 /media/Data/build/xxxtemphs/make/linux/linux_amd64_compiler2/fastdebug/libjvm.so
2b0ee42d6000-2b0ee436c000 r--p 00f90000 08:04 10911088 /media/Data/build/xxxtemphs/make/linux/linux_amd64_compiler2/fastdebug/libjvm.so
2b0ee436c000-2b0ee4397000 rw-p 01026000 08:04 10911088 /media/Data/build/xxxtemphs/make/linux/linux_amd64_compiler2/fastdebug/libjvm.so
2b0ee4397000-2b0ee4429000 rw-p 00000000 00:00 0
2b0ee4445000-2b0ee4446000 rw-p 00000000 00:00 0
2b0ee4446000-2b0ee44c8000 r-xp 00000000 08:01 2102697 /lib/libm-2.12.1.so
2b0ee44c8000-2b0ee46c7000 ---p 00082000 08:01 2102697 /lib/libm-2.12.1.so
2b0ee46c7000-2b0ee46c8000 r--p 00081000 08:01 2102697 /lib/libm-2.12.1.so
2b0ee46c8000-2b0ee46c9000 rw-p 00082000 08:01 2102697 /lib/libm-2.12.1.so
2b0ee46c9000-2b0ee46cb000 r-xp 00000000 08:01 2102696 /lib/libdl-2.12.1.so
2b0ee46cb000-2b0ee48cb000 ---p 00002000 08:01 2102696 /lib/libdl-2.12.1.so
2b0ee48cb000-2b0ee48cc000 r--p 00002000 08:01 2102696 /lib/libdl-2.12.1.so
2b0ee48cc000-2b0ee48cd000 rw-p 00003000 08:01 2102696 /lib/libdl-2.12.1.so
2b0ee48cd000-2b0ee48e5000 r-xp 00000000 08:01 2102707 /lib/libpthread-2.12.1.so
2b0ee48e5000-2b0ee4ae4000 ---p 00018000 08:01 2102707 /lib/libpthread-2.12.1.so
2b0ee4ae4000-2b0ee4ae5000 r--p 00017000 08:01 2102707 /lib/libpthread-2.12.1.so
2b0ee4ae5000-2b0ee4ae6000 rw-p 00018000 08:01 2102707 /lib/libpthread-2.12.1.so
2b0ee4ae6000-2b0ee4aeb000 rw-p 00000000 00:00 0
2b0ee4aeb000-2b0ee4c65000 r-xp 00000000 08:01 2102693 /lib/libc-2.12.1.so
2b0ee4c65000-2b0ee4e65000 ---p 0017a000 08:01 2102693 /lib/libc-2.12.1.so
2b0ee4e65000-2b0ee4e69000 r--p 0017a000 08:01 2102693 /lib/libc-2.12.1.so
2b0ee4e69000-2b0ee4e6a000 rw-p 0017e000 08:01 2102693 /lib/libc-2.12.1.so
2b0ee4e6a000-2b0ee4e71000 rw-p 00000000 00:00 0
2b0ee4e71000-2b0ee4e74000 ---p 00000000 00:00 0
2b0ee4e74000-2b0ee4f72000 rwxp 00000000 00:00 0
2b0ee4f8f000-2b0ee4f96000 r-xp 00000000 08:01 2102709 /lib/librt-2.12.1.so
2b0ee4f96000-2b0ee5195000 ---p 00007000 08:01 2102709 /lib/librt-2.12.1.so
2b0ee5195000-2b0ee5196000 r--p 00006000 08:01 2102709 /lib/librt-2.12.1.so
2b0ee5196000-2b0ee5197000 rw-p 00007000 08:01 2102709 /lib/librt-2.12.1.so
2b0ee5197000-2b0ee51a4000 r-xp 00000000 08:02 2366596 /home/rednaxelafx/sdk/jdk1.6.0_25/jre/lib/amd64/libverify.so
2b0ee51a4000-2b0ee52a3000 ---p 0000d000 08:02 2366596 /home/rednaxelafx/sdk/jdk1.6.0_25/jre/lib/amd64/libverify.so
2b0ee52a3000-2b0ee52a6000 rw-p 0000c000 08:02 2366596 /home/rednaxelafx/sdk/jdk1.6.0_25/jre/lib/amd64/libverify.so
2b0ee52a6000-2b0ee52cf000 r-xp 00000000 08:02 2366612 /home/rednaxelafx/sdk/jdk1.6.0_25/jre/lib/amd64/libjava.so
2b0ee52cf000-2b0ee53ce000 ---p 00029000 08:02 2366612 /home/rednaxelafx/sdk/jdk1.6.0_25/jre/lib/amd64/libjava.so
2b0ee53ce000-2b0ee53d5000 rw-p 00028000 08:02 2366612 /home/rednaxelafx/sdk/jdk1.6.0_25/jre/lib/amd64/libjava.so
2b0ee53d5000-2b0ee53d6000 r--p 00000000 00:00 0
2b0ee53d6000-2b0ee53d8000 rw-p 00000000 00:00 0
2b0ee53f2000-2b0ee5409000 r-xp 00000000 08:01 2102699 /lib/libnsl-2.12.1.so
2b0ee5409000-2b0ee5608000 ---p 00017000 08:01 2102699 /lib/libnsl-2.12.1.so
2b0ee5608000-2b0ee5609000 r--p 00016000 08:01 2102699 /lib/libnsl-2.12.1.so
2b0ee5609000-2b0ee560a000 rw-p 00017000 08:01 2102699 /lib/libnsl-2.12.1.so
2b0ee560a000-2b0ee560c000 rw-p 00000000 00:00 0
2b0ee560c000-2b0ee5614000 rw-s 00000000 08:01 3271707 /tmp/hsperfdata_rednaxelafx/12157
2b0ee5629000-2b0ee5631000 r-xp 00000000 08:01 2102700 /lib/libnss_compat-2.12.1.so
2b0ee5631000-2b0ee5830000 ---p 00008000 08:01 2102700 /lib/libnss_compat-2.12.1.so
2b0ee5830000-2b0ee5831000 r--p 00007000 08:01 2102700 /lib/libnss_compat-2.12.1.so
2b0ee5831000-2b0ee5832000 rw-p 00008000 08:01 2102700 /lib/libnss_compat-2.12.1.so
2b0ee5832000-2b0ee583c000 r-xp 00000000 08:01 2102704 /lib/libnss_nis-2.12.1.so
2b0ee583c000-2b0ee5a3b000 ---p 0000a000 08:01 2102704 /lib/libnss_nis-2.12.1.so
2b0ee5a3b000-2b0ee5a3c000 r--p 00009000 08:01 2102704 /lib/libnss_nis-2.12.1.so
2b0ee5a3c000-2b0ee5a3d000 rw-p 0000a000 08:01 2102704 /lib/libnss_nis-2.12.1.so
2b0ee5a3d000-2b0ee5a49000 r-xp 00000000 08:01 2102702 /lib/libnss_files-2.12.1.so
2b0ee5a49000-2b0ee5c48000 ---p 0000c000 08:01 2102702 /lib/libnss_files-2.12.1.so
2b0ee5c48000-2b0ee5c49000 r--p 0000b000 08:01 2102702 /lib/libnss_files-2.12.1.so
2b0ee5c49000-2b0ee5c4a000 rw-p 0000c000 08:01 2102702 /lib/libnss_files-2.12.1.so
2b0ee5c4a000-2b0ee5c58000 r-xp 00000000 08:02 2366601 /home/rednaxelafx/sdk/jdk1.6.0_25/jre/lib/amd64/libzip.so
2b0ee5c58000-2b0ee5d5a000 ---p 0000e000 08:02 2366601 /home/rednaxelafx/sdk/jdk1.6.0_25/jre/lib/amd64/libzip.so
2b0ee5d5a000-2b0ee5d5d000 rw-p 00010000 08:02 2366601 /home/rednaxelafx/sdk/jdk1.6.0_25/jre/lib/amd64/libzip.so
2b0ee5d5d000-2b0ee5d5e000 rw-p 00000000 00:00 0
2b0ee5d5e000-2b0ee5fce000 rwxp 00000000 00:00 0
2b0ee5fce000-2b0eebd5e000 rw-p 00000000 00:00 0
2b0eebd5e000-2b0eebd68000 rw-p 00000000 00:00 0
2b0eebd68000-2b0eebede000 rw-p 00000000 00:00 0
2b0eebede000-2b0eebee9000 rw-p 00000000 00:00 0
2b0eebee9000-2b0eebf07000 rw-p 00000000 00:00 0
2b0eebf07000-2b0eebf30000 rw-p 00000000 00:00 0
2b0eebf30000-2b0eec197000 rw-p 00000000 00:00 0
2b0eec197000-2b0eec1ac000 rw-p 00000000 00:00 0
2b0eec1ac000-2b0eec2df000 rw-p 00000000 00:00 0
2b0eec2df000-2b0eec309000 rw-p 00000000 00:00 0
2b0eec309000-2b0eec570000 rw-p 00000000 00:00 0
2b0eec570000-2b0eec57b000 rw-p 00000000 00:00 0
2b0eec57b000-2b0eec599000 rw-p 00000000 00:00 0
2b0eec599000-2b0eec59a000 ---p 00000000 00:00 0
2b0eec59a000-2b0eec69a000 rwxp 00000000 00:00 0
2b0eec69a000-2b0eec69b000 ---p 00000000 00:00 0
2b0eec69b000-2b0eec79b000 rwxp 00000000 00:00 0
2b0eec79b000-2b0eec79c000 ---p 00000000 00:00 0
2b0eec79c000-2b0eec89c000 rwxp 00000000 00:00 0
2b0eec89c000-2b0eec89d000 ---p 00000000 00:00 0
2b0eec89d000-2b0eec99d000 rwxp 00000000 00:00 0
2b0eec99d000-2b0ef28db000 rw-p 00000000 00:00 0
7fff3ba50000-7fff3ba6f000 rwxp 00000000 00:00 0 [stack]
7fff3ba6f000-7fff3ba72000 rw-p 00000000 00:00 0
7fff3bbff000-7fff3bc00000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
VM Arguments:
jvm_args: -Xbatch
java_command: Queens
Launcher Type: gamma
Environment Variables:
JAVA_HOME=/home/rednaxelafx/sdk/jdk1.6.0_25
CLASSPATH=.:/home/rednaxelafx/sdk/jdk1.6.0_25/jre/lib/rt.jar:/home/rednaxelafx/sdk/jdk1.6.0_25/jre/lib/i18n.jar
PATH=/home/rednaxelafx/.rvm/gems/ruby-1.9.2-p180/bin:/home/rednaxelafx/.rvm/gems/ruby-1.9.2-p180@global/bin:/home/rednaxelafx/.rvm/rubies/ruby-1.9.2-p180/bin:/home/rednaxelafx/.rvm/bin:/home/rednaxelafx/sdk/jdk1.6.0_25/bin:/home/rednaxelafx/bin:/home/rednaxelafx/sdk/apache-maven-3.0/bin:/usr/share/ant/bin:/home/rednaxelafx/sdk/groovy-1.7.5/bin:/home/rednaxelafx/sdk/scala-2.8.1.final/bin:/home/rednaxelafx/sdk/btrace/bin:/home/rednaxelafx/sdk/go/bin:/home/rednaxelafx/coderepo/svnrepo/v8:/home/rednaxelafx/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
USERNAME=rednaxelafx
LD_LIBRARY_PATH=.:/home/rednaxelafx/sdk/jdk1.6.0_25/jre/lib/amd64/native_threads:/home/rednaxelafx/sdk/jdk1.6.0_25/jre/lib/amd64:
SHELL=/bin/bash
DISPLAY=:0.0
Signal Handlers:
SIGSEGV: [libjvm.so+0xcabce0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0xcabce0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0xa8ece0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0xa8ece0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0xa8ece0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0xa8ece0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0xa94370], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGINT: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGTERM: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGQUIT: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
--------------- S Y S T E M ---------------
OS:squeeze/sid
uname:Linux 2.6.35-32-generic #67-Ubuntu SMP Mon Mar 5 19:39:49 UTC 2012 x86_64
libc:glibc 2.12.1 NPTL 2.12.1
rlimit: STACK infinity, CORE infinity, NPROC infinity, NOFILE 1024, AS infinity
load average:5.46 4.17 2.52
/proc/meminfo:
MemTotal: 8053476 kB
MemFree: 1103868 kB
Buffers: 379960 kB
Cached: 3309112 kB
SwapCached: 7476 kB
Active: 3592408 kB
Inactive: 2782976 kB
Active(anon): 2220520 kB
Inactive(anon): 477996 kB
Active(file): 1371888 kB
Inactive(file): 2304980 kB
Unevictable: 32 kB
Mlocked: 32 kB
SwapTotal: 7811068 kB
SwapFree: 7744108 kB
Dirty: 79244 kB
Writeback: 0 kB
AnonPages: 2680868 kB
Mapped: 120164 kB
Shmem: 12188 kB
Slab: 279864 kB
SReclaimable: 238372 kB
SUnreclaim: 41492 kB
KernelStack: 4176 kB
PageTables: 54024 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 11837804 kB
Committed_AS: 5955896 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 350076 kB
VmallocChunk: 34359382524 kB
HardwareCorrupted: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 479232 kB
DirectMap2M: 7835648 kB
CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 37 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht, tsc, tscinvbit
/proc/cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU M 460 @ 2.53GHz
stepping : 5
cpu MHz : 1199.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 11
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 rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida arat dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 5054.02
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU M 460 @ 2.53GHz
stepping : 5
cpu MHz : 2534.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 2
apicid : 4
initial apicid : 4
fpu : yes
fpu_exception : yes
cpuid level : 11
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 rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida arat dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 5054.08
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU M 460 @ 2.53GHz
stepping : 5
cpu MHz : 1199.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 11
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 rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida arat dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 5054.07
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU M 460 @ 2.53GHz
stepping : 5
cpu MHz : 1199.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 2
apicid : 5
initial apicid : 5
fpu : yes
fpu_exception : yes
cpuid level : 11
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 rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida arat dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 5054.02
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
Memory: 4k page, physical 8053476k(1103868k free), swap 7811068k(7744108k free)
vm_info: OpenJDK 64-Bit Server VM (24.0-b12-internal-fastdebug) for linux-amd64 JRE (1.8.0), built on Jun 9 2012 00:03:15 by "rednaxelafx" with gcc 4.4.5
time: Sat Jun 9 00:03:49 2012
elapsed time: 0 seconds

The problematic function, in src/share/vm/oops/arrayOop.hpp

  // The _length field is not declared in C++.  It is allocated after the
  // declared nonstatic fields in arrayOopDesc if not compressed, otherwise
  // it occupies the second half of the _klass field in oopDesc.
  static int length_offset_in_bytes() {
    return UseCompressedOops ? klass_gap_offset_in_bytes() :
                               sizeof(arrayOopDesc);
  }

This function depends on implicit knowledge about the object header layout, which won't cope with additional fields after oopDesc::_metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment