Review request (S): 7131791 G1: Asserts in nightly testing due to 6976060

Tony Printezis tony.printezis at oracle.com
Fri Jan 20 16:44:28 UTC 2012


Stefan,

On 01/20/2012 11:21 AM, Stefan Karlsson wrote:
> 1067         Handle h((oop)result);  
> 1068         collect(GCCause::_g1_humongous_allocation);
> 1069       }
> 1070       return result;
> 1071     }
> Can we really have a handle to uninitialized memory?

Yes. The "unitialized" memory is made to look like a scalar array (of 
the correct size) before creating the handle. So, I can't see any issues.

> Are you sure that the humongous object will not be moved by a full collection.

Yes, humongous objects never move during evacuation pauses.

> You should probably return h() instead of result.

Maybe we could add an assert that h() == result?

Tony

> StefanK
>
>>
>> Bengt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-gc-dev/attachments/20120120/d85181d1/attachment.htm>


More information about the hotspot-gc-dev mailing list