Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 61992 invoked from network); 18 Feb 2009 18:23:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2009 18:23:16 -0000 Received: (qmail 43067 invoked by uid 500); 18 Feb 2009 18:23:14 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 42909 invoked by uid 500); 18 Feb 2009 18:23:14 -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 42898 invoked by uid 99); 18 Feb 2009 18:23:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 10:23:14 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of alexei.fedotov@gmail.com designates 209.85.219.10 as permitted sender) Received: from [209.85.219.10] (HELO mail-ew0-f10.google.com) (209.85.219.10) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 18:23:04 +0000 Received: by ewy3 with SMTP id 3so18756ewy.12 for ; Wed, 18 Feb 2009 10:22:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=NsC+VBxs8PhO60B7IfN0sZtORMnoRYlxommuzceSJkQ=; b=w8OzBLCfBRmsZYq9y/U0AgoUTTxX1a7s1R+5t+MNNwww3yUUb9gUVjHe2lFdMdTtag Me088V4MM4j6CXpOCVu1RvO63gOsm3pztEXJlwYdc1DPX5StXztf0UzBQGgvU9esquHr YA1rKrbVqLtPE+psmJY0BmVpY+I+KCIT2rrAs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=mD54NgcHK3cMB43QscJd4H5uJv0TaDM9CbUV4SPPSIkpAaq/sdvsWVTDwn50DdHgXw IkXyxOodKhw8E+83KCM7BA8x/xfRCGxGkzrjjzPJfIAurYOvzO+p8cYyV1zDOofK9keO P69jXoBLD5BxlEBMgT4BHKiai3+IqiZU4ATW4= MIME-Version: 1.0 Received: by 10.210.76.4 with SMTP id y4mr3947146eba.176.1234981364449; Wed, 18 Feb 2009 10:22:44 -0800 (PST) In-Reply-To: References: <60412.69.157.206.34.1229106152.squirrel@email.powweb.com> Date: Wed, 18 Feb 2009 21:22:44 +0300 Message-ID: Subject: Fwd: Quick Apache Harmony JNI question From: Alexei Fedotov To: dev@harmony.apache.org Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hello Pavel, The following mail from Bert gives better perception and some answers about his use cases. If this could help you fixing HARMONY-5505! :-) ---------- Forwarded message ---------- From: Alexei Fedotov Date: 2008/12/12 Subject: Re: Quick Apache Harmony JNI question To: webmaster@quadmore.com Hello Bert, I would appreciate if you redirected the following questions to the mail list dev@harmony.apache.org. This is the proper way how Apache provides non-commercial support. If confidential matters were involved, you'd better ask for commercial support on the same list. Here goes a short answer. * Yes, we tried to implement DestroyJavaVM correctly. It does not segfault on simple scenarios. Note, Apache Harmony VM does not allow several VMs to coexist in the same address space. * I believe Apache Harmony VM was better tested for Java 5. * Check the date of the posts about Sun's DestroyJavaVM. Now it works much better. Let me make a strong guess that unless you've spend more than a week debugging your scenario, it is more likely that a bug is in your invocation code then in Sun's DestroyJavaVM. * I tried DestroyJavaVM in J9 and it worked as well. You may ask Tim (on the list) more questions about IBM's VM. Thanks. On Fri, Dec 12, 2008 at 9:22 PM, wrote: > Hello Alexei, > > I am writing you in regard to the Apache Harmony post: > http://markmail.org/message/i2dzuxvhp2jwinsg#query:Harmony%20DestroyJAVAV= M+page:1+mid:osffotk7clugto6n+state:results > > I am a developer in Quebec City, Canada. We're working on a 10 year old > maritime traffic control system built in C++ and have to integrate a new > radar interface which is in Java. > > I've done some prototypes which use JNI Invocation which we like but they > leak some memory and over time we would need to stop and restart the JVM > from the same C++ process. > > The DestroyJavaVM JNI method was not correctly implemented by Sun, refere= nce: > http://forums.sun.com/thread.jspa?forumID=3D52&threadID=3D305978 > > but your exchange, as well as the new Intel JNI degugger, seem to suggest > that Apache Harmony has implemented correctly the DestroyJavaVM method. > > Could you confirm it is now possible with Harmony to destroy the JVM and > start a new one from the same C++ executable, and which version of Harmon= y > (5 or 6) does this ? Any info would be appreciated. > > Thank you, > Bert Szoghy > > > -- =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =E1=CC=C5=CB=D3=C5=CA =E6=C5=C4=CF=D4=CF=D7, =FA=E1=EF <<=F4=C5=CC=C5=CB=CF=CD =FC=CB=D3=D0=D2=C5=D3=D3>> --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =E1=CC=C5=CB=D3=C5=CA =E6=C5=C4=CF=D4=CF=D7, =FA=E1=EF <<=F4=C5=CC=C5=CB=CF=CD =FC=CB=D3=D0=D2=C5=D3=D3>>