From owner-freebsd-java@FreeBSD.ORG Wed Jun 2 10:06:15 2004 Return-Path: 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 2E11A16A4CE for ; Wed, 2 Jun 2004 10:06:15 -0700 (PDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABE9343D4C for ; Wed, 2 Jun 2004 10:06:13 -0700 (PDT) (envelope-from squirk@ieee.org) Received: from biggayal (bgp487673bgs.summit01.nj.comcast.net[68.37.187.37]) by comcast.net (sccrmhc13) with SMTP id <2004060217061201600q4ioje>; Wed, 2 Jun 2004 17:06:13 +0000 Date: Wed, 2 Jun 2004 13:06:11 -0400 (EDT) From: Steve Quirk X-X-Sender: squirk@biggayal.summit01.nj.comcast.net To: Daniel Fisher In-Reply-To: <20040602095245.48cb3c44@psych.iad.vt.edu> Message-ID: <20040602125306.R82060@biggayal.summit01.nj.comcast.net> References: <20040601154601.0869f5b4@psych.iad.vt.edu> <40BD7C06.5050205@noc.ntua.gr> <20040602095245.48cb3c44@psych.iad.vt.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: java@freebsd.org Subject: Re: possible threading problem X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 17:06:15 -0000 On Wed, 2 Jun 2004, Daniel Fisher wrote: > On Wed, 02 Jun 2004 10:04:38 +0300 > Panagiotis Astithas wrote: > > > Daniel Fisher wrote: > > > I'm experiencing a weird threading problem with jdk-1.4.2p6_3 that I don't > > > see on Linux. > > > It looks like the BSD JDK is not honoring sychronize statements. > > > Has anyone seen this before? > > > If not, who should I send sample code to? > > > > Um, the list? > > -- > > Panagiotis Astithas > > Alrighty then.... > attached is a tarball with the sample classes in it. > Untar and cd into the directory. > Execute: java -jar prop.jar > These classes monitor the main.properties file and echo the changes to stdout. > Edit main.properties while the java job is running. > FreeBSD JVM throws an InterruptedIOException, Linux JVM does not throw an > exception. > > -- > Daniel Fisher Removing "synchronized" from the 3 methods in PropSingleton has no effect (it still throws InterruptedIOException), so it's probably not related to that. Fixing the possibly leaked file descriptor in PropUtil.loadProperties() (add "is.close();") also doesn't help. I tried reproducing this with a smaller program (just load the properties file from another thread), but couldn't make it fail. My jvm is "1.4.2-p6". And, it works fine on MacOS/X. Not much help, but FYI. Steve