From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28668 invoked by alias); 16 Oct 2009 18:35:08 -0000 Received: (qmail 28658 invoked by uid 22791); 16 Oct 2009 18:35:08 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail3.caviumnetworks.com (HELO mail3.caviumnetworks.com) (12.108.191.235) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Oct 2009 18:35:05 +0000 Received: from caexch01.caveonetworks.com (Not Verified[192.168.16.9]) by mail3.caviumnetworks.com with MailMarshal (v6,5,4,7535) id ; Fri, 16 Oct 2009 11:34:56 -0700 Received: from caexch01.caveonetworks.com ([192.168.16.9]) by caexch01.caveonetworks.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 16 Oct 2009 11:34:56 -0700 Received: from dd1.caveonetworks.com ([12.108.191.236]) by caexch01.caveonetworks.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Fri, 16 Oct 2009 11:34:56 -0700 Message-ID: <4AD8BCCD.2070109@caviumnetworks.com> Date: Fri, 16 Oct 2009 18:35:00 -0000 From: David Daney User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: yuri@rawbw.com CC: java@gcc.gnu.org Subject: Re: Java objects obtained by c++: are they garbage collected? References: <4AD8B945.5000407@rawbw.com> In-Reply-To: <4AD8B945.5000407@rawbw.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg00039.txt.bz2 Yuri wrote: > I compiled several Java classes into a shared library and call it's > methods from C++. > Some of these methods return Java objects. > > I wonder do I have to do anything special about them in order for them > to get garbage collected? > If you use the CNI facilities to start the runtime and do the calling, everything should just work (including garbage collection). David Daney