diff options
author | glewis <glewis@FreeBSD.org> | 2005-03-21 13:48:04 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2005-03-21 13:48:04 +0800 |
commit | 855917764553aaad9908d18190793973f9eaeccd (patch) | |
tree | ed7c2a99cef39ed40d5e012bcf551446029e7461 /java | |
parent | fe1450854f1ae16948a5df39ca542fa9e01d64ef (diff) | |
download | freebsd-ports-gnome-855917764553aaad9908d18190793973f9eaeccd.tar.gz freebsd-ports-gnome-855917764553aaad9908d18190793973f9eaeccd.tar.zst freebsd-ports-gnome-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')
-rw-r--r-- | java/jdk15/files/patch-vm::os_bsd.cpp | 9 | ||||
-rw-r--r-- | java/jdk16/files/patch-vm::os_bsd.cpp | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/java/jdk15/files/patch-vm::os_bsd.cpp b/java/jdk15/files/patch-vm::os_bsd.cpp index 25bd71db866c..f2d865a6da54 100644 --- a/java/jdk15/files/patch-vm::os_bsd.cpp +++ b/java/jdk15/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 + diff --git a/java/jdk16/files/patch-vm::os_bsd.cpp b/java/jdk16/files/patch-vm::os_bsd.cpp index 25bd71db866c..f2d865a6da54 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 + |