Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 53382 invoked from network); 4 Mar 2007 22:33:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2007 22:33:25 -0000 Received: (qmail 3287 invoked by uid 500); 4 Mar 2007 22:33:31 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 3255 invoked by uid 500); 4 Mar 2007 22:33:30 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 3245 invoked by uid 99); 4 Mar 2007 22:33:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2007 14:33:30 -0800 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of weldonwjw@gmail.com designates 64.233.182.191 as permitted sender) Received: from [64.233.182.191] (HELO nf-out-0910.google.com) (64.233.182.191) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2007 14:33:20 -0800 Received: by nf-out-0910.google.com with SMTP id d4so1861672nfe for ; Sun, 04 Mar 2007 14:32:58 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=VgbUOdSuIpJ5DFmiqHbBTB2w41eLlolPMrOoJvUefC/gMBRRbeDNbBw+pUS3ZhEVvyEBuNG4Vb119PSsaD0NFrCU2cbZTnKBzFL4ChCa0Td5K7Yv7DvRbSF/G8jKEH0TO8ivRuS8WFSL0AyPGm9/Dg4+L2mgzz0Dm88a8M/okWM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=PzoSwDF8Ig939XGaMleVr8eoRjcMwi+Q0gmgh/A+d9GCPGpBIz7eVTdbKCnSOs5RsjDQtwpHk7hnGrqZ4XPxlA1tkKvl7YfL3YMTfPaH8hXoPvZ/nTMZd5ajkj99Bi42uobSSA4eT6Ho4iY6p2AhJU4R7ncdXAh9bZ+hMrBKaTQ= Received: by 10.78.172.20 with SMTP id u20mr560143hue.1173047578807; Sun, 04 Mar 2007 14:32:58 -0800 (PST) Received: by 10.78.137.2 with HTTP; Sun, 4 Mar 2007 14:32:58 -0800 (PST) Message-ID: <4dd1f3f00703041432i39cab5bax53f3aacf0bc88d40@mail.gmail.com> Date: Sun, 4 Mar 2007 14:32:58 -0800 From: "Weldon Washburn" To: dev@harmony.apache.org Subject: [drlvm][threading] synchronizing native and java access of the thread state (Harmony-3289) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_78455_26809869.1173047578739" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_78455_26809869.1173047578739 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I decided to put a response to H3289 on the dev list since it is a general threading issue. Please look at 3289 for background info. In response to the question about JVMTI functions being able to grab a lock in java.lang.Thread class, maybe a workable approach would be to replace locking the java object with a mutex created in native code and stuffed into a private int field of java.lang.Thread. The Java code would use native method APIs to grab and release this new native mutex. And the native code (including JVMTI) would use the standard hymutex_lock(), hymutex_unlock(). The native code would manage the life-cycle of the private int field containing a pointer to the native mutex. -- Weldon Washburn Intel Enterprise Solutions Software Division ------=_Part_78455_26809869.1173047578739--