From owner-freebsd-java@FreeBSD.ORG Thu Dec 29 18:22:59 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0326B16A41F for ; Thu, 29 Dec 2005 18:22:59 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFC2943D78 for ; Thu, 29 Dec 2005 18:22:53 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id jBTIMoAF017244; Thu, 29 Dec 2005 20:22:50 +0200 (EET) (envelope-from past@ebs.gr) Received: from [10.1.1.200] (pptp.ebs.gr [10.1.1.200]) by ebs.gr (8.13.3/8.12.11) with ESMTP id jBTINbkH073059; Thu, 29 Dec 2005 20:23:37 +0200 (EET) (envelope-from past@ebs.gr) Received: from 127.0.0.1 (AVG SMTP 7.1.371 [267.14.9/216]); Thu, 29 Dec 2005 20:22:47 +0200 Message-ID: <43B42977.40404@ebs.gr> Date: Thu, 29 Dec 2005 20:22:47 +0200 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Franco Bruno Borghesi References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD-Java Subject: Re: Still doesn't work X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 18:22:59 -0000 Franco Bruno Borghesi wrote: > 2005/12/23, Franco Bruno Borghesi : > >>Hi again. I'm still having problems with eclipse + jdk15 on amd64. Eclipse >>crashes continuously and the only thing that seems to make it work (at least >>for a couple of hours) is erasing the .metadata directory (and loosing all >>the configuration settings). >> >>Panagiotis said it was a gc problem, and suggested me to look herefor a switch that makes java >>work.I tried different switches, some from that page and some I found >>googling (not many), but nothing seems to work. >> >>The fact that only Panagiotis answered my questions makes me think that >>none of you have experienced this kind of problem, although Panagiotis said >>it was a common problem (is it?). >> >>So, my question is: has anyone experienced this problem? how do you deal >>with it? have you found any switch to make java work? >>I'm thinking maybe I shoud go back and use freebsd 32 on my amd64... is >>this what you people do? >> >>Thanks... and merry Christmas to all of you :-) >> > > > > Googling around I've found this jdk bug > 5060628( > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5060628). > > I don't know if the problem they describe there is the same problem that > Panagiotis was talking about, and I also ignore if it is actually my > problem, but I decided to give a try to the proposed fixes. > > Running eclipse with "-vmargs -Djava.compiler=" seems to solve the > problem.Eclipse runs slower but stable, no hangs at all (at least for the > last couple of days). > > The other proposed solution was to create a file called ".hotspot_compiler" > with the following contents: > exclude org/eclipse/jdt/internal/compiler/parser/Scanner > optimizedCurrentTokenSource3 > exclude org/eclipse/jdt/internal/core/util/CommentRecorderScanner > recordComment > > This is said to be a better solution, but it didn't work for me. It's not > clear to me where I should create the file, so I tryed with > /usr/local/eclipse/.hotspot_compiler, ~/.hotspot_compiler and > ~/.eclipse/.hotspot_compiler. > > Hope this helps anyone with the same problem. > Cheers. Interesting. So this is a bug in hostspot:compiler2 on amd64 that is fixed in jdk 1.5 update 6 (build 4) and mustang (build 59). Since the mustang source is available perhaps we could obtain the relevant fix. However it is available under the JRL not SCSL. Can we do this and then legally distribute the jdk? Cheers, Panagiotis