United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6730514 assertion failure in mangling code when expanding by 0 bytes
JDK-6730514 : assertion failure in mangling code when expanding by 0 bytes

Details
Type:
Bug
Submit Date:
2008-07-28
Status:
Resolved
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2008-08-29
Component:
hotspot
OS:
generic
Sub-Component:
gc
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs14 (b03)

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
The assertion

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

in PSOldGen::expand_by().

                                    

Comments
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.
                                     
2008-07-28
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.
                                     
2008-07-28
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/818a18cd69a8
                                     
2008-07-31



Hardware and Software, Engineered to Work Together