[kaffe] Re: bugwatcher problems
Mark Wielaard
mark@klomp.org
Sat Jan 31 05:31:02 2004
--=-9cLezufomE2OuChJKRPw
Content-Type: multipart/mixed; boundary="=-BMOe1sXKg7c6sxDMA78/"
--=-BMOe1sXKg7c6sxDMA78/
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hi,
On Thu, 2004-01-29 at 20:42, Dalibor Topic wrote:
> Ean Schuessler wrote:
> > As I recall (Dalibor will need to correct me here) forking a process wi=
th=20
> > pthreads just plain doesn't work. The details escape me at this point o=
ther=20
> > than the complexities of managing the relationship between the thread a=
nd the=20
> > forked process hadn't really been worked out. Of course, this is going =
back=20
> > to when I talked to Tim Wilkinson about the problem. For all I know, it=
s=20
> > fixed.
> >=20
> > Is it fixed? If not, enabling pthreads will break many, many Ant builds=
.
>=20
> Frankly, I don't know, I haven't hacked on kaffe's pthreads threading,=20
> so I can't claim to know much about it :(
>=20
> The last thread on pthreads and kaffe I found [1] mentions that stuff=20
> like wait & run works fine with java threads under pthreads. The=20
> FAQ.pthreads still says that exec/fork/wait doesn't work, so it may mean=20
> Runtime.exec, I guess.
That is easy to check. Attached RuntimeExec test program works fine on
kaffe compiled with either unix-jthreads or unix-pthreads. And I think
we would have noticed if other things were really broken under pthreads.
Since it enables working with any JNI library that does "blocking" in
native mode (which doesn't work with jthreads) for larger frameworks
like java-gnome or eclipse I think it got at least some testing that it
doesn work for non-trivial things. And enabling it by default would help
us expose anything that might be broken.
> [1] http://www.kaffe.org/pipermail/kaffe/2002-June/039992.html
Cheers,
Mark
--=-BMOe1sXKg7c6sxDMA78/
Content-Disposition: inline; filename=RuntimeExec.java
Content-Type: text/x-java; name=RuntimeExec.java; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: base64
aW1wb3J0IGphdmEuaW8uKjsNCg0KcHVibGljIGNsYXNzIFJ1bnRpbWVFeGVjDQp7DQogIHB1Ymxp
YyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBFeGNlcHRpb24NCiAgew0K
ICAgIFByb2Nlc3MgcCA9IFJ1bnRpbWUuZ2V0UnVudGltZSgpLmV4ZWMoIi9iaW4vY2F0Iik7DQog
ICAgT3V0cHV0U3RyZWFtIG91dCA9IHAuZ2V0T3V0cHV0U3RyZWFtKCk7DQogICAgV3JpdGVyIHdy
aXRlciA9IG5ldyBPdXRwdXRTdHJlYW1Xcml0ZXIob3V0KTsNCiAgICB3cml0ZXIud3JpdGUoIkhl
bGxvIFdvcmxkIVxuIik7DQogICAgd3JpdGVyLndyaXRlKCJIYXZlIGEgbmljZSBkYXkhXG4iKTsN
CiAgICB3cml0ZXIuY2xvc2UoKTsNCiAgICBvdXQuY2xvc2UoKTsNCg0KICAgIElucHV0U3RyZWFt
IGluID0gcC5nZXRJbnB1dFN0cmVhbSgpOw0KICAgIEJ1ZmZlcmVkUmVhZGVyIHJlYWRlciA9IG5l
dyBCdWZmZXJlZFJlYWRlcihuZXcgSW5wdXRTdHJlYW1SZWFkZXIoaW4pKTsNCiAgICBTdHJpbmcg
cyA9IHJlYWRlci5yZWFkTGluZSgpOw0KICAgIHdoaWxlIChzICE9IG51bGwpDQogICAgICB7DQoJ
U3lzdGVtLm91dC5wcmludGxuKCJjYXQgc2F5czogIiArIHMpOw0KCXMgPSByZWFkZXIucmVhZExp
bmUoKTsNCiAgICAgIH0NCiAgfQ0KfQ0K
--=-BMOe1sXKg7c6sxDMA78/--
--=-9cLezufomE2OuChJKRPw
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQBAG5Q/xVhZCJWr9QwRAkXgAKCnzmHNcCkN3fA9HwXUXoZTd0SmtACdHvAf
2wayxdt+hLOkDrApmoMiJEI=
=g2SA
-----END PGP SIGNATURE-----
--=-9cLezufomE2OuChJKRPw--