harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-1426) [drlvm] Thread manager uses wrong allocator for monitors returned by jthread_get_owned_monitors
Date Sat, 16 Sep 2006 00:14:23 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1426?page=all ]

Geir Magnusson Jr resolved HARMONY-1426.
----------------------------------------

    Resolution: Fixed

committed in r446791

tested on ubuntu - smoke and c-unit passs, lingering bugs in kernel

> [drlvm] Thread manager uses wrong allocator for monitors returned by jthread_get_owned_monitors
> -----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1426
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1426
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Gregory Shimansky
>         Assigned To: Geir Magnusson Jr
>         Attachments: jvmti-thread.patch
>
>
> Array of monitors created by function GetOwnedMonitorsInfo can be freed with Deallocate
JVMTI function. This array is taken from Thread Manager by calling jthread_get_owned_monitors.
But Thread Manager uses APR pools for allocating memory for this array. So when JVMTI agent
tries to use Deallocate on the array pointer the program usually crashes since the pointer
was not allocated by JVMTI Allocate.
> Inside of JVMTI implementation Allocate simply calls malloc. So to solve this prooblem
it is enough to change Thread Manager allocator to malloc. I've done this fix in the same
way as other functions in this file seem to be fixed.
> Ugly tabs formatting is not fixed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message