RFR(S): 8040920: Uninitialised memory in hotspot/src/share/vm/code/dependencies.cpp
doug.simon at oracle.com
Thu May 1 08:54:06 UTC 2014
(proper subject line this time)
> On 4/30/14 2:35 PM, Christian Thalinger wrote:
>> On Apr 30, 2014, at 11:26 AM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:
>>> 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
The same problem exists for expandable stringStreams.
More information about the hotspot-compiler-dev