Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 70264 invoked from network); 1 Aug 2006 09:50:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2006 09:50:07 -0000 Received: (qmail 4914 invoked by uid 500); 1 Aug 2006 09:50:05 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 4747 invoked by uid 500); 1 Aug 2006 09:50:04 -0000 Mailing-List: contact harmony-dev-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-dev@incubator.apache.org Received: (qmail 4736 invoked by uid 99); 1 Aug 2006 09:50:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 02:50:04 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gshimansky@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 02:50:03 -0700 Received: by ug-out-1314.google.com with SMTP id u40so1253504ugc for ; Tue, 01 Aug 2006 02:49:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=sH0Kqi/bU2axvQ3XLWus6mq56a3sPz5Rxdxu6e9koK2VEM5WyGSgnYrgQmOouz7rcMf7KPU0tzQCJLFa1tzusB0XZDUQ/pVRgrVZErAKBX8NryF2SkSDoqgh2i9fYCs3KJs8EugR9wuMNdLjjdvtrV7iLrB6AT0OAUrjVPNilJQ= Received: by 10.67.89.5 with SMTP id r5mr610097ugl; Tue, 01 Aug 2006 02:49:42 -0700 (PDT) Received: from ppp83-237-44-223.pppoe.mtu-net.ru ( [83.237.44.223]) by mx.gmail.com with ESMTP id j2sm5415930ugf.2006.08.01.02.49.34; Tue, 01 Aug 2006 02:49:42 -0700 (PDT) From: Gregory Shimansky Reply-To: harmony-dev@incubator.apache.org To: harmony-dev@incubator.apache.org Subject: Re: [classlib] Intention to work on java.lang.instrument Date: Tue, 1 Aug 2006 13:49:08 +0400 User-Agent: KMail/1.9.1 References: <44CDBF4E.4030600@gmail.com> <208da7a50607310704i737014bawd0252ae42cce46ea@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608011349.09028.gshimansky@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Tuesday 01 August 2006 09:47 Leo Li wrote: > > I agree with this approach. Do you know which API functions and events > > you will need for such agent? > > Hi, we will need VM Initialization Event to run premain functions and > Class File Load Hook Event for agents to instruct the existing class file. > As to the jvmti API, we need RedefineClasses,GetObjectSize and Allocate. > Besides, AddCapabilities is also required to turn on the capability of the > VM, such as can_generate_all_class_hook_events and can_redefine_classes. > > Since we have just planned to implement this module, please excuse me if I > leave some requirements about it. :) It is not a problem. I just wanted to know which areas are required, not every single API function :) All of the functions and events that you mentioned are implemented already except for RedefineClasses. It is on the TODO list for drlvm. -- Gregory Shimansky, Intel Middleware Products Division --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org