hotspot-compiler-dev Digest, Vol 83, Issue 81

Doug Simon doug.simon at
Thu May 1 08:52:56 UTC 2014

> On 4/30/14 2:35 PM, Christian Thalinger wrote:
>> On Apr 30, 2014, at 11:26 AM, Vladimir Kozlov <vladimir.kozlov at> wrote:
>>> Morris,
>>> How you verified that you put ResourceMark in all needed places?
>>> That is what I don't like about GrowableArray.
>> He could put a ResourceMark in front of every GrowableArray.  That would do it.
> Nested ResourceMark has bad effect on external GrowableArray: if it 
> grows after inner ResourceMark that space will be released after inner 
> scope ends. You will get memory stomps because of that. You need to be 
> sure that external GrowableArray never grows inside inner ResourceMark 
> scope.

The same problem exists for expandable stringStreams[1].



More information about the hotspot-compiler-dev mailing list