Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 17625 invoked from network); 27 Jul 2007 12:00:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jul 2007 12:00:10 -0000 Received: (qmail 25074 invoked by uid 500); 27 Jul 2007 12:00:08 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 24975 invoked by uid 500); 27 Jul 2007 12:00:07 -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 24966 invoked by uid 99); 27 Jul 2007 12:00:07 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2007 05:00:07 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcjhd-harmony-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2007 12:00:01 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IEOTp-0008VL-UC for dev@harmony.apache.org; Fri, 27 Jul 2007 13:59:37 +0200 Received: from 89.175.165.2 ([89.175.165.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jul 2007 13:59:37 +0200 Received: from egor.pasko by 89.175.165.2 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jul 2007 13:59:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@harmony.apache.org From: Egor Pasko Subject: Re: [drlvm][jit][opt][timer]How to measure the execution time of a specific optpass? Date: 27 Jul 2007 15:59:29 +0400 Lines: 24 Message-ID: <0vqhcnq5a72.fsf@gmail.com> References: <730cde590707260108h303a9dacuac5c281cebb74ee@mail.gmail.com> <0vqk5snjzve.fsf@gmail.com> <0vqmyxi5j8v.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 89.175.165.2 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Sender: news X-Virus-Checked: Checked by ClamAV on apache.org On the 0x320 day of Apache Harmony Mikhail Fursov wrote: > On 27 Jul 2007 12:44:00 +0400, Egor Pasko wrote: > > > > On the 0x320 day of Apache Harmony Mikhail Fursov wrote: > > > Yes it works fine. The only reason when it does not work fine is > > > System.exitmethod in Java code (AFAIK Dacapo uses it). In this case no > > > 'deinit' method > > > is called for JIT and no info is dumped. > > > > we can instrument System.exit() with a small helper for that :) > > > Good idea :) But I prefer more elegant solution with DRLVM VM shutdown. > > I still do not understand actually why can't we catch all managed threads on > any gc-safe-point in code and shutdown gracefully with notification to all > components when System.exit is called. I am also a little confised with this mystery :) BTW, there is a bug for System.exit() and DeInit: HARMONY-3069 -- Egor Pasko