Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 35269 invoked from network); 23 May 2007 15:45:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 May 2007 15:45:37 -0000 Received: (qmail 22991 invoked by uid 500); 23 May 2007 15:45:42 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 22968 invoked by uid 500); 23 May 2007 15:45:42 -0000 Mailing-List: contact commits-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 commits@harmony.apache.org Received: (qmail 22959 invoked by uid 99); 23 May 2007 15:45:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2007 08:45:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2007 08:45:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 85B40714057 for ; Wed, 23 May 2007 08:45:16 -0700 (PDT) Message-ID: <14013952.1179935116545.JavaMail.jira@brutus> Date: Wed, 23 May 2007 08:45:16 -0700 (PDT) From: "Gregory Shimansky (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-3894) [drlvm][jvmti] JVMTI function GetThreadGroupChildren() return no more than 10 child threds and groups In-Reply-To: <19920312.1179403937771.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 [ https://issues.apache.org/jira/browse/HARMONY-3894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498276 ] Gregory Shimansky commented on HARMONY-3894: -------------------------------------------- Hello Eugene. Could you please fix the warning in j.l.ThreadGroup compilation that was added by your patch? I'll commit it if tests pass but new warning is not good. > [drlvm][jvmti] JVMTI function GetThreadGroupChildren() return no more than 10 child threds and groups > ----------------------------------------------------------------------------------------------------- > > Key: HARMONY-3894 > URL: https://issues.apache.org/jira/browse/HARMONY-3894 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Environment: Windows, Linux, harmony-hdk-r538813 > Reporter: Ivan Popov > Assigned To: Gregory Shimansky > Attachments: H3894-GetThreadGroupChildren-fix.patch, H3894-Regression-test.patch > > > Implementation of JVMTI function GetThreadGroupChildren() uses internal arrays of 10 elements to return child threads and groups (see jvmti_thred_group.cpp): > jclass cl = GetObjectClass(jvmti_test_jenv, group); > jobjectArray jg = jvmti_test_jenv -> NewObjectArray(10, cl, 0); > jmethodID id = jvmti_test_jenv -> GetMethodID(cl, "enumerate","([Ljava/lang/ThreadGroup;)I"); > int cc = jvmti_test_jenv -> CallIntMethod (group, id, jg); > jclass cll = struct_Class_to_java_lang_Class_Handle(VM_Global_State::loader_env->java_lang_Thread_Class); > jobjectArray jt = jvmti_test_jenv -> NewObjectArray(10, cll, 0); > id = jvmti_test_jenv -> GetMethodID(cl, "enumerate","([Ljava/lang/Thread;Z)I"); > cc = jvmti_test_jenv -> CallIntMethod (group, id, jt, JNI_FALSE); > The other problem is that used ThreadGroup methods with array argument are not precise and may report not all threads and groups. Instead, similar methods with List argument should be used. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.