Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 56559 invoked from network); 11 Jul 2006 06:26:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jul 2006 06:26:24 -0000 Received: (qmail 28416 invoked by uid 500); 11 Jul 2006 06:26:20 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 28367 invoked by uid 500); 11 Jul 2006 06:26:20 -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 28356 invoked by uid 99); 11 Jul 2006 06:26:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jul 2006 23:26:19 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 64.74.244.71 is neither permitted nor denied by domain of geir@pobox.com) Received: from [64.74.244.71] (HELO chi.mobile-health-diary.com) (64.74.244.71) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 10 Jul 2006 23:26:19 -0700 Received: (qmail 4552 invoked from network); 11 Jul 2006 06:25:57 -0000 Received: from ool-43560edb.dyn.optonline.net (HELO ?192.168.1.102?) (geir@67.86.14.219) by b014.internal.mobile-health-diary.com with SMTP; 11 Jul 2006 06:25:57 -0000 Message-ID: <44B34475.8010807@pobox.com> Date: Tue, 11 Jul 2006 02:25:57 -0400 From: Geir Magnusson Jr Reply-To: geir@pobox.com User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [drlvm] using the harmony launcher References: <12385bbd0607100844v362dae5ev7bb26036d31a6449@mail.gmail.com> <12385bbd0607100845p86f0c57j98b1b7440eefa008@mail.gmail.com> <6928c5160607100922n1e42323cl63a68e3690526d56@mail.gmail.com> <51d555c70607101941r494d8dcdodd7a3752056b2cf7@mail.gmail.com> In-Reply-To: <51d555c70607101941r494d8dcdodd7a3752056b2cf7@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This has been my thinking - even if not perfect, lets get it working using the launcher and then fix as required. It's arguable if that "brokenness" matters at this point, and I think that there's plenty to be gained from having it work via the launcher. geir Rana Dasgupta wrote: > create_vm() looks quite close/complete to being a complete prototype for > CreateJavaVM, > but I think more work is needed in DestroyVM which prototypes DestroyJavaVM > for functional completeness. It is non waiting on user threads, it does not > send the corresponding JVMTI shutdown events, I also don't know if it > handles shutdown hooks cleanly ( but these "may" not be critical right now > for hooking up to the launcher ). What do you think? > > When I ran a non trivial test.. upto 32 threads instantiating a very large > number of objects with -XcleanupOnExit which uses DestroyVM, it > exited cleanly. Maybe OK to hookup and fix bugs as we go. > > Thanks, > Rana > > > On 7/10/06, Andrey Chernyshev wrote: > >> >Yes, it seems like the launcher will need at least JNI_CreateJavaVM >> >and DestroyJavaVM functions. >> >> >I couldn't find implementation for CreateJavaVM in drlvm codebase. >> >Perhaps create_vm() function in vm\vmcore\src\init\vm_main.cpp can be >> >adopted for that purpose? >> >Is there are any tricks and caveats one should be aware of before >> >trying to produce CreateJavaVM from it? >> >> >I've also seen a prototype for DestroyJavaVM in >> >vm\vmcore\src\init\vm.cpp - comment says it needs to be improved to >> >wait till all Java threads are completed. >> >> >Any more ideas what needs to be done to implement those? >> >> >Thanks, >> >Andrey. >> >> >> --------------------------------------------------------------------- >> 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 >> >> > --------------------------------------------------------------------- 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