Minor memory issues in fastdebug build
Chuck Rasbold
rasbold at google.com
Fri Jan 11 14:40:52 PST 2013
David, Mikael -
Thank you both.
Jeremy is out of the office for a few more days. Until then, let me knew
if I can assist in any way.
-- Chuck
On Thu, Jan 10, 2013 at 6:01 PM, David Holmes <david.holmes at oracle.com>wrote:
> On 11/01/2013 11:30 AM, Mikael Vidstedt wrote:
>
>>
>> The fix looks good.
>>
>> I've already prepared the change set for the other fix but let's work
>> together on getting this one in too!
>>
>
> Thanks Mikael both changesets are on their way.
>
> David
>
>
> Cheers,
>> Mikael
>>
>> On 1/9/2013 1:52 AM, David Holmes wrote:
>>
>>> Jeremy,
>>>
>>> I didn't see any follow up on this, nor do I see a bug, so I created
>>> 8005921: Memory leaks in vmStructs.cpp
>>>
>>> These fixes look fine to me.
>>>
>>> I know Mikael is in the process of doing some vmStructs changes at the
>>> moment so perhaps I can put him on the spot and see if he could
>>> sponsor this at the same time.
>>>
>>> Thanks,
>>> David
>>>
>>> On 13/12/2012 10:11 AM, Jeremy Manson wrote:
>>>
>>>> Hi folks,
>>>>
>>>> I was playing with the fastdebug build, and I found a couple of
>>>> trivial memory issues. A patch follows: let me know if you want me to
>>>> do some footwork to correct it (file a bug, etc).
>>>>
>>>> Jeremy
>>>>
>>>> diff -r 121aa71316af src/share/vm/runtime/**vmStructs.cpp
>>>> --- a/src/share/vm/runtime/**vmStructs.cpp Fri Dec 07 10:46:54 2012
>>>> -0800
>>>> +++ b/src/share/vm/runtime/**vmStructs.cpp Wed Dec 12 16:05:25 2012
>>>> -0800
>>>> @@ -3146,10 +3146,10 @@
>>>> s[len-1] = '\0';
>>>> // tty->print_cr("checking \"%s\" for \"%s\"", s, typeName);
>>>> if (recursiveFindType(origtypes, s, true) == 1) {
>>>> - delete s;
>>>> + delete [] s;
>>>> return 1;
>>>> }
>>>> - delete s;
>>>> + delete [] s;
>>>> }
>>>> const char* start = NULL;
>>>> if (strstr(typeName, "GrowableArray<") == typeName) {
>>>> @@ -3165,10 +3165,10 @@
>>>> s[len-1] = '\0';
>>>> // tty->print_cr("checking \"%s\" for \"%s\"", s, typeName);
>>>> if (recursiveFindType(origtypes, s, true) == 1) {
>>>> - delete s;
>>>> + delete [] s;
>>>> return 1;
>>>> }
>>>> - delete s;
>>>> + delete [] s;
>>>> }
>>>> if (strstr(typeName, "const ") == typeName) {
>>>> const char * s = typeName + strlen("const ");
>>>> @@ -3182,8 +3182,10 @@
>>>> s[len - 6] = '\0';
>>>> // tty->print_cr("checking \"%s\" for \"%s\"", s, typeName);
>>>> if (recursiveFindType(origtypes, s, true) == 1) {
>>>> + free(s);
>>>> return 1;
>>>> }
>>>> + free(s);
>>>> }
>>>> if (!isRecurse) {
>>>> tty->print_cr("type \"%s\" not found", typeName);
>>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20130111/804a485d/attachment.html
More information about the hotspot-runtime-dev
mailing list