diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2013-10-09 22:24:17 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2013-10-09 22:24:17 +0000 |
commit | 147d3f7524b475be5b8cd139be8d067eb4b8a3a6 (patch) | |
tree | 8036af77be27bf1db55285a5a942e889e30a5f59 /java | |
parent | eb69082b0b77ecbce90fe4b387c983752bcb513b (diff) | |
download | ports-147d3f7524b475be5b8cd139be8d067eb4b8a3a6.tar.gz ports-147d3f7524b475be5b8cd139be8d067eb4b8a3a6.zip |
Notes
Diffstat (limited to 'java')
-rw-r--r-- | java/openjdk6/files/patch-set | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/java/openjdk6/files/patch-set b/java/openjdk6/files/patch-set index 6b6f7f744d96..ee6e5228757e 100644 --- a/java/openjdk6/files/patch-set +++ b/java/openjdk6/files/patch-set @@ -590,6 +590,17 @@ HOSTCXX = $(CXX) HOSTCC = $(CC) endif +--- hotspot/src/os/bsd/vm/osThread_bsd.cpp ++++ hotspot/src/os/bsd/vm/osThread_bsd.cpp +@@ -49,7 +49,7 @@ + + void OSThread::pd_initialize() { + assert(this != NULL, "check"); +-#ifdef __APPLE__ ++#if defined(__APPLE__) || defined(__FreeBSD__) + _thread_id = 0; + #else + _thread_id = NULL; --- hotspot/src/os/bsd/vm/osThread_bsd.hpp +++ hotspot/src/os/bsd/vm/osThread_bsd.hpp @@ -39,7 +39,7 @@ @@ -848,7 +859,7 @@ + cpuset_t mask; + if (cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, -1, sizeof(mask), + &mask) == 0) -+ for (int i = 0; i < sizeof(mask) / sizeof(long); i++) ++ for (u_int i = 0; i < sizeof(mask) / sizeof(long); i++) + online_cpus += __builtin_popcountl(((long *)&mask)[i]); +#else + online_cpus = ::sysconf(_SC_NPROCESSORS_ONLN); |