JDK-7175674 : CollectedHeap::test_is_in fails with class data sharing
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs23
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • OS: generic
  • CPU: generic
  • Submitted: 2012-06-09
  • Updated: 2012-09-30
  • Resolved: 2012-09-30
Related Reports
Relates :  
Description
The internal vm tests CollectedHeap::test_is_in fails when class data sharing is enabled.

$ java -client -XX:+ExecuteInternalVMTests -version
Running internal VM tests
Running test: arrayOopDesc::test_max_array_length()
Running test: CollectedHeap::test_is_in()
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/collectedHeap.cpp:525
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (hotspot-gc/src/share/vm/gc_interface/collectedHeap.cpp:525), pid=28757, tid=2
#  assert(!heap->is_in(after_heap)) failed: after_heap: 0xd9c00002 is unexpectedly in the heap
#
# JRE version: 8.0-b30
# Java VM: Java HotSpot(TM) Client VM (24.0-b14-hotspot-gc.20120607114319-jvmg mixed mode, sharing solaris-x86 )
# 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:
# hs_err_pid28757.log

Comments
The test no longer fails after the metadata changes (JDK-6964458).
30-09-2012

EVALUATION The value used for the end of the heap is incorrect when class data sharing is enabled.
09-06-2012