harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov" <mike.fur...@gmail.com>
Subject Re: [drlvm][jit][opt][timer]How to measure the execution time of a specific optpass?
Date Fri, 27 Jul 2007 11:34:10 GMT
On 27 Jul 2007 12:44:00 +0400, Egor Pasko <egor.pasko@gmail.com> 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.

-- 
Mikhail Fursov

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message