Date: Wed, 2 Jun 2004 13:06:11 -0400 (EDT) From: Steve Quirk <squirk@ieee.org> To: Daniel Fisher <daniel.fisher@vt.edu> Cc: java@freebsd.org Subject: Re: possible threading problem Message-ID: <20040602125306.R82060@biggayal.summit01.nj.comcast.net> In-Reply-To: <20040602095245.48cb3c44@psych.iad.vt.edu> References: <20040601154601.0869f5b4@psych.iad.vt.edu> <40BD7C06.5050205@noc.ntua.gr> <20040602095245.48cb3c44@psych.iad.vt.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2 Jun 2004, Daniel Fisher wrote: > On Wed, 02 Jun 2004 10:04:38 +0300 > Panagiotis Astithas <past@noc.ntua.gr> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040602125306.R82060>