From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12871 invoked by alias); 18 Jul 2011 16:08:27 -0000 Received: (qmail 12857 invoked by uid 22791); 18 Jul 2011 16:08:25 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_40,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yi0-f47.google.com (HELO mail-yi0-f47.google.com) (209.85.218.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Jul 2011 16:08:07 +0000 Received: by yib18 with SMTP id 18so1534978yib.20 for ; Mon, 18 Jul 2011 09:08:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.72.201 with SMTP id t49mr7241667yhd.311.1311005286330; Mon, 18 Jul 2011 09:08:06 -0700 (PDT) Received: by 10.147.41.10 with HTTP; Mon, 18 Jul 2011 09:08:06 -0700 (PDT) Date: Mon, 18 Jul 2011 16:08:00 -0000 Message-ID: Subject: gnu.gcj.RawData vs. long From: Craig Vanderborgh To: java@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 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: 2011-07/txt/msg00006.txt.bz2 Hello all: I am working to make some of our code more portable. We "gcj-ified" our source several years back, including making liberal use of gnu.gcj.RawData * class members to store pointers for native (CNI) code within object instances. The problem is that gnu.gcj.RawData * is not portable. The question is: can I use "long" for the type instead without garbage collection problems? Can my native code store the pointer value in a Java "long" in the CNI with impunity, or will Boehm GC think these pointers needs to be considered for collection? Please advise. Thanks in advance, Craig Vanderborgh Voxware Incorporated