United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6979458 VM crashes when -XX:ObjectAlignmentInBytes is too big
JDK-6979458 : VM crashes when -XX:ObjectAlignmentInBytes is too big

Details
Type:
Bug
Submit Date:
2010-08-24
Status:
Closed
Updated Date:
2012-02-01
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs19
Fixed Versions:
hs20 (b02)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
Not sure if this is a real bug, but at least it is an easy way to crash HS 19 b03 containing CR 6916623 fix:

$ java -XX:ObjectAlignmentInBytes=65536 -version

VM option 'ObjectAlignmentInBytes=65536'
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/virtualspace.cpp:424
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/tmp/jprt/P1/B/234049.et151817/source/src/share/vm/runtime/virtualspace.cpp:424), pid=7945, tid=140098164266768
#  assert((_noaccess_prefix != 0) == (UseCompressedOops && _base != NULL && (size_t(_base + _size) > OopEncodingHeapMax) && Universe::narrow_oop_use_implicit_null_checks())) failed: noaccess_prefix should be used only with non zero based compressed oops
#
# JRE version: 6.0_22-b01
# Java VM: Java HotSpot(TM) 64-Bit Server VM (19.0-b06-<...>.hotspot-fastdebug mixed mode linux-amd64 compressed oops)
# An error report file with more information is saved as:
# <...>/hs_err_pid7945.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Current thread is 140098164266768
Dumping core ...
Aborted

                                    

Comments
EVALUATION

The distance from Universe::narrow_oop_base() to heap base (by default page size 4kb) is not large enough to cover large alignment (64kb).
                                     
2010-08-24
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/fe08403130db
                                     
2010-10-05
PUBLIC COMMENTS

ObjectAlignmentInBytes should not be larger then default page size used by VM. Set upper limit 256 for ObjectAlignmentInBytes value.
                                     
2010-10-05
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/fe08403130db
                                     
2010-10-09



Hardware and Software, Engineered to Work Together