harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Leviev" <ilya.lev...@gmail.com>
Subject Re: [drlvm][GC]Bad Pointer during GC v5 shutdown sequence
Date Mon, 12 Nov 2007 13:46:25 GMT

Thank you for evaluation and a quick patch. It seems that the patch
you have prepared solves the problem with invalid pointer.

To check that the patch fixes the memory leak I've applied your patch
and rerun BoundsChecker. The tool detected no leek related to this
issue with your patch applied. Thank you again for the great job: your
patch decreased leaks by 256 MB!

Best regards,

On 11/10/07, Rana Dasgupta <rdasgupt@gmail.com> wrote:
> Illya,
> Yes, it's possible that there could be a leak. An assert added to
> vm_unmap_mem() does show that the VirtualFree fails. The pointer parameter
> etc. passed to the function are invalid because the sections of the heap (
> nos, mos etc. ) have already been freed with STD_FREE.
>  The root cause is that for VirtualFree() to successfully release on
> Windows, it needs to be called from the exact VirtualAlloc allocation base.
> I have attached a quick fix in
> H5105<https://issues.apache.org/jira/browse/HARMONY-5105>
> which you can try. Xiao Feng needs to look at it.
> Rana

View raw message