Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 83035 invoked from network); 16 Sep 2006 00:18:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Sep 2006 00:18:41 -0000 Received: (qmail 62399 invoked by uid 500); 16 Sep 2006 00:18:41 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 62358 invoked by uid 500); 16 Sep 2006 00:18:41 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 62345 invoked by uid 99); 16 Sep 2006 00:18:41 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Sep 2006 17:18:40 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E887571434D for ; Sat, 16 Sep 2006 00:14:23 +0000 (GMT) Message-ID: <23257896.1158365663949.JavaMail.jira@brutus> Date: Fri, 15 Sep 2006 17:14:23 -0700 (PDT) From: "Geir Magnusson Jr (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Resolved: (HARMONY-1426) [drlvm] Thread manager uses wrong allocator for monitors returned by jthread_get_owned_monitors In-Reply-To: <16935354.1157982862436.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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