From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20980 invoked by alias); 8 Jun 2011 17:20:05 -0000 Received: (qmail 20967 invoked by uid 22791); 8 Jun 2011 17:20:04 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from edge10.ethz.ch (HELO edge10.ethz.ch) (82.130.75.186) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Jun 2011 17:19:45 +0000 Received: from CAS22.d.ethz.ch (172.31.51.112) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.1.289.1; Wed, 8 Jun 2011 19:19:41 +0200 Received: from [129.132.50.22] (129.132.50.22) by mail.ethz.ch (172.31.51.112) with Microsoft SMTP Server (TLS) id 14.1.289.8; Wed, 8 Jun 2011 19:19:42 +0200 Message-ID: <4DEFAF45.8080709@student.ethz.ch> Date: Wed, 08 Jun 2011 17:20:00 -0000 From: Noah Heusser User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: Subject: Add a Field to java.lang.Object Content-Type: text/plain; charset="ISO-8859-1" 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: 2011-06/txt/msg00012.txt.bz2 Hi I'm trying to add an new extra field into java.lang.Object. I need that to do some memory synchronization via Network. If I just insert the new Field in libjava/java/lang/Object.h (access form the Java World is not needed) I get a segmentation fault whenever I try to run a Java Software using that Object.h. (It does no matter whether I add it to _JvObjectPrefix or java::lang::Object) If the JV_HASH_SYNCHRONIZATION Preprocessor Variable is not defined an extra Filed sync_info gets inserted in Object.h. But everywhere where extra Code is inserted depending on JV_HASH_SYNCHRONIZATION it seems to deal with whether or not the Garbage Collector needs to scan the Object. If I add the Field in libjava/java/lang/Object.java I get a compile Error when I compile gcj: ../../../../gcc-src/libjava/java/lang/Object.java:517:0: internal compiler error: Segmentation fault What extra change is needed after adding a Filed to Object? Thanks for your Help Noah