summaryrefslogtreecommitdiff
path: root/java/jdk15/files/patch-vm::os_bsd.cpp
blob: fc7bbfd757f05565b73bd1e29c54e753f4b8a388 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$FreeBSD$
 
--- ../../hotspot/src/os/bsd/vm/os_bsd.cpp.orig	Mon Sep 17 21:03:04 2007
+++ ../../hotspot/src/os/bsd/vm/os_bsd.cpp	Tue Sep 18 21:36:51 2007
@@ -2271,13 +2271,7 @@
     if (thread->is_Java_thread()) {
       ThreadBlockInVM tbivm((JavaThread*) thread);
 
-// BSDXXX: Only use pthread_yield here and below if the system thread
-// scheduler gives time slices to lower priority threads when yielding.
-#ifdef __FreeBSD__
-      os_sleep(MinSleepInterval, interruptible);
-#else
       pthread_yield();
-#endif
 
 #if SOLARIS
       // XXX - This code was not exercised during the Merlin RC1
@@ -2297,13 +2291,7 @@
       return 0;
     }
 
-// BSDXXX: Only use pthread_yield here and above if the system thread
-// scheduler gives time slices to lower priority threads when yielding.
-#ifdef __FreeBSD__
-    os_sleep(MinSleepInterval, interruptible);
-#else
     pthread_yield();
-#endif
     return 0;
   }