aboutsummaryrefslogtreecommitdiffstats
path: root/java/jdk16
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2005-03-21 13:48:04 +0800
committerglewis <glewis@FreeBSD.org>2005-03-21 13:48:04 +0800
commit855917764553aaad9908d18190793973f9eaeccd (patch)
treeed7c2a99cef39ed40d5e012bcf551446029e7461 /java/jdk16
parentfe1450854f1ae16948a5df39ca542fa9e01d64ef (diff)
downloadfreebsd-ports-graphics-855917764553aaad9908d18190793973f9eaeccd.tar.gz
freebsd-ports-graphics-855917764553aaad9908d18190793973f9eaeccd.tar.zst
freebsd-ports-graphics-855917764553aaad9908d18190793973f9eaeccd.zip
. Fix a performance issue by using the correct INTERRUPTIBLE_NORESTART
macro. This will be in patchset 2. PR: 77162 Submitted by: phantom
Diffstat (limited to 'java/jdk16')
-rw-r--r--java/jdk16/files/patch-vm::os_bsd.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/java/jdk16/files/patch-vm::os_bsd.cpp b/java/jdk16/files/patch-vm::os_bsd.cpp
index 25bd71db866..f2d865a6da5 100644
--- a/java/jdk16/files/patch-vm::os_bsd.cpp
+++ b/java/jdk16/files/patch-vm::os_bsd.cpp
@@ -11,3 +11,12 @@ $FreeBSD$
#define EXTENSIONS_DIR "/lib/ext"
#define ENDORSED_DIR "/lib/endorsed"
+@@ -1898,7 +1898,7 @@
+ } while ((res == OS_ERR) && (errno == EINTR));
+ } else {
+ assert(Thread::current()->is_Java_thread(), "must be java thread");
+- INTERRUPTIBLE_NORESTART(nanosleep(&t, &t), res, os::Bsd::clear_interrupted);
++ INTERRUPTIBLE_NORESTART_VM(nanosleep(&t, &t), res, os::Bsd::clear_interrupted);
+ }
+ // INTERRUPTIBLE_NORESTART_VM returns res == OS_INTRPT for thread.Interrupt
+