JDK-6730514 : assertion failure in mangling code when expanding by 0 bytes
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-07-28
  • Updated: 2010-04-02
  • Resolved: 2008-08-29
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 6 JDK 7 Other
6u14Fixed 7Fixed hs14Fixed
Related Reports
Relates :  
Relates :  
The assertion

      assert(object_space()->end() < virtual_space_high,
        "Should be true before post_resize()");

in PSOldGen::expand_by().

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/818a18cd69a8

SUGGESTED FIX Guard the assertion against executing if the requested expand() results if a request for 0 bytes of expansion. Change the expand() code to align down a requested number of bytes if the align up would wrap around.

EVALUATION The problem is that a call to expand() by 0 bytes was made where the 0 bytes value was the result of an align up of the requested bytes and the align up caused a wrap around to 0.