ports/java/openjdk7/files/patch-src-os-bsd-vm-os_bsd.cpp
Greg Lewis a419e4f7dc . Make set_native_priority return a (correct) value on FreeBSD, rather than
whatever happens to be on the stack.
. Bump PORTREVISION.

Submitted by:	Xiaoguang Sun <sunxiaoguang@gmail.com>
2013-09-22 00:39:22 +00:00

21 lines
693 B
C++

$FreeBSD$
--- hotspot/src/os/bsd/vm/os_bsd.cpp.orig 2010-02-21 20:07:54.000000000 -0800
+++ hotspot/src/os/bsd/vm/os_bsd.cpp 2010-02-21 20:08:41.000000000 -0800
@@ -358,7 +358,7 @@
* 7: The default directories, normally /lib and /usr/lib.
*/
#ifndef DEFAULT_LIBPATH
-#define DEFAULT_LIBPATH "/lib:/usr/lib"
+#define DEFAULT_LIBPATH "/lib:/usr/lib:%%LOCALBASE%%/lib"
#endif
#define EXTENSIONS_DIR "/lib/ext"
@@ -3670,6 +3670,7 @@
return OS_OK;
#elif defined(__FreeBSD__)
int ret = pthread_setprio(thread->osthread()->pthread_id(), newpri);
+ return (ret == 0) ? OS_OK : OS_ERR;
#elif defined(__APPLE__) || defined(__NetBSD__)
struct sched_param sp;
int policy;