harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1426) [drlvm] Thread manager uses wrong allocator for monitors returned by jthread_get_owned_monitors
Date Mon, 11 Sep 2006 13:54:22 GMT
[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


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