JDK-7169062 : CMS: Assertion failed with -XX:+ObjectAlignmentInBytes=64
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs24
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2012-05-15
  • Updated: 2013-06-26
  • Resolved: 2012-06-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 Other
7u40Fixed 8Fixed hs24Fixed
Description
Running a simple Hello world with a System.gc() crashes CMS:

java -XX:+UseConcMarkSweepGC -XX:ObjectAlignmentInBytes=64 -cp ~/src/ Hello

The crash is instantaneous and reproduces every time. All other GCs works with 64 bytes alignment.

Comments
EVALUATION http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/c92a79900986
29-06-2012

EVALUATION Removed the assert and cleaned up the initalization code.
21-05-2012