Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jun 2004 09:52:45 -0400
From:      Daniel Fisher <daniel.fisher@vt.edu>
To:        java@freebsd.org
Subject:   Re: possible threading problem
Message-ID:  <20040602095245.48cb3c44@psych.iad.vt.edu>
In-Reply-To: <40BD7C06.5050205@noc.ntua.gr>
References:  <20040601154601.0869f5b4@psych.iad.vt.edu> <40BD7C06.5050205@noc.ntua.gr>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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

[-- Attachment #2 --]
bug/prop.jar0100644000175100017510000001651410057151666013164 0ustar  dfisherdfisherPKx0	META-INF/PKPKx0META-INF/MANIFEST.MFMLK-.
K-*ϳR03r.JM,IMu	)h)f&W+x%ir&f:$[)	 //PKm=^bPKx0prop/PropEvent.classmPJ@=6MԦྍMō(EaJtRP~%I$}sϙ0¡]mck.t3%J$̣u$PeBcڙB3C"}$rk"$Y=MyvMv݆Dw0OU6դ5j5XփG+% N|FspJ&K6j ='&},PeP]GM)e{7Tc
/9wtpmQA.mtU8(+*%;\PKj*'-PKww0prop/PropEvent.javamA0E=,aKM\I	JqM;%&[ F67"8߻R)tzE~@Sӡ4X2p!!@3sE=$5
Zj\B/@aM\2\f:OФ1IaQz.Z#l0rJI	w1SI{yPKUPKx0prop/PropListener.class;o>=nvvNv.FԢbļFa
~p-K+cd
/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xsgFRL`Fx@FH2S"jJxPTJA98FYhpqZzL(a"1u}8AEmKwLtB{Y3c?ClBƞ!KBO%.n	,l˜.]n0f_0v',}WKOƼrMԌ{l80\Ka+=.[=(1kEctxf}h$ @	vώ@gяƳ@(+҆zz7NbVnрNqͥhb
9N]1r1H_ئ%f$.P‡Vp!bOw(շ+2.xGViǹh
]!E|&LOWWW'Ԗ۠`#721GܲCrQ'PKzmPKx0prop/PropUtil.classmPN@=CA3C3			jc
YRڦI$(,
Ι9sf>4qn`phhBCI}LH1!x!|R	jwjؖcҝj(mko,t}4:1o^G
mUk([rS򉹛,,~IR׏B(왂O8C|֤vp*F!6B	]Z]PUٶ3gTkK`Xw	mP_@k\| xcd6,Em#:if8+}y*Xd[PK=nOPKv0prop/PropUtil.java]K0D9X
$L1`IIZ>(ƣ=7<|߽WldWFv՜7gM^r2)SLɾ9
cɨ:%=a0N]؞ƣ[)@.="Lj%$/OFXDE5g;3g!̍5ǷH`G~\7pB+^PKPKx0	META-INF/PKx0m=^b=META-INF/MANIFEST.MFPKx0j*'-prop/PropEvent.classPKww0ULprop/PropEvent.javaPKx0*ϗBprop/PropListener.classPKv0+,qprop/PropListener.javaPKx0v`́Zprop/PropMain.classPKv0P(Vprop/PropMain.javaPKx0øȩb+	prop/PropMonitor.classPKv0P
prop/PropMonitor.javaPKx0Y*8ecprop/PropSingleton.classPKv0zm:prop/PropSingleton.javaPKx0=nOprop/PropUtil.classPKv0prop/PropUtil.javaPKbug/main.properties0100644000175100017510000000020610057151734014533 0ustar  dfisherdfisher# Comments must be on seperate lines
# Format is 'name=value'

test1=this is a test
#test2=this is also a test
test3=yet another test

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040602095245.48cb3c44>