Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 May 2003 22:30:22 +0900
From:      Kazuaki Oda <kaakun@highway.ne.jp>
To:        threads@freebsd.org
Subject:   Patch for running Java2D demo (jdk-1.4.1p3_3)
Message-ID:  <20030504223022.5335f30f.kaakun@highway.ne.jp>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

--Multipart_Sun__4_May_2003_22:30:22_+0900_0822d600
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi,

After applying the attached patch, I've been able to run Java2D demo
under jdk-1.4.1p3_3 with libpthread (libkse).

This patch is for problem with suspending and resuming thread.

Please review.

--
Kazuaki Oda (kaakun@highway.ne.jp)

--Multipart_Sun__4_May_2003_22:30:22_+0900_0822d600
Content-Type: application/octet-stream;
 name="libpthread_jdk.diff"
Content-Disposition: attachment;
 filename="libpthread_jdk.diff"
Content-Transfer-Encoding: base64

ZGlmZiAtcnUgbGlicHRocmVhZC5vcmlnL3RocmVhZC90aHJfY3JlYXRlLmMgbGlicHRocmVhZC90
aHJlYWQvdGhyX2NyZWF0ZS5jCi0tLSBsaWJwdGhyZWFkLm9yaWcvdGhyZWFkL3Rocl9jcmVhdGUu
YwlUaHUgTWF5ICAxIDAyOjA4OjEyIDIwMDMKKysrIGxpYnB0aHJlYWQvdGhyZWFkL3Rocl9jcmVh
dGUuYwlTdW4gTWF5ICA0IDAwOjQ0OjI4IDIwMDMKQEAgLTI1OSw5ICsyNTksMTAgQEAKIAkJCW5l
d190aHJlYWQtPmZsYWdzID0gMDsKIAkJCW5ld190aHJlYWQtPmNvbnRpbnVhdGlvbiA9IE5VTEw7
CiAKLQkJCWlmIChuZXdfdGhyZWFkLT5hdHRyLnN1c3BlbmQgPT0gVEhSX0NSRUFURV9TVVNQRU5E
RUQpCisJCQlpZiAobmV3X3RocmVhZC0+YXR0ci5zdXNwZW5kID09IFRIUl9DUkVBVEVfU1VTUEVO
REVEKSB7CiAJCQkJbmV3X3RocmVhZC0+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tPnN0YXRlID09IFBTX1NVU1BFTkRFRCkKKwlpZiAodGhyZWFk
LT5zdGF0ZSA9PSBQU19TVVNQRU5ERUQgJiYKKwkgICAgKHRocmVhZC0+c2ZsYWdzICYgVEhSX0ZM
QUdTX0lOX1NZTkNRKSA9PSAwKQogCQlfdGhyX3NldHJ1bm5hYmxlX3VubG9ja2VkKHRocmVhZCk7
CiB9Cg==

--Multipart_Sun__4_May_2003_22:30:22_+0900_0822d600--



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