summaryrefslogtreecommitdiff
path: root/java/openjdk8/files/patch-hotspot-src-os-bsd-vm-os_bsd.cpp
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2016-09-04 04:06:00 +0000
committerGreg Lewis <glewis@FreeBSD.org>2016-09-04 04:06:00 +0000
commit71b1ef1dd5d6c3e1c8cbd3f04fc7fd93ccea1874 (patch)
treef431d2618aa0605c30bf54e2c8169b1dbb38c179 /java/openjdk8/files/patch-hotspot-src-os-bsd-vm-os_bsd.cpp
parentlang/ruby22: fix plist with CAPIDOCS (diff)
. Include the thread id so that jstack can provide stack traces when
analysing core dumps. . Bump PORTREVISION. PR: 211196 Submitted by: Ron Roskens <ronald.roskens@gmail.com>
Notes
Notes: svn path=/head/; revision=421302
Diffstat (limited to 'java/openjdk8/files/patch-hotspot-src-os-bsd-vm-os_bsd.cpp')
-rw-r--r--java/openjdk8/files/patch-hotspot-src-os-bsd-vm-os_bsd.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/java/openjdk8/files/patch-hotspot-src-os-bsd-vm-os_bsd.cpp b/java/openjdk8/files/patch-hotspot-src-os-bsd-vm-os_bsd.cpp
new file mode 100644
index 000000000000..f66e7637372f
--- /dev/null
+++ b/java/openjdk8/files/patch-hotspot-src-os-bsd-vm-os_bsd.cpp
@@ -0,0 +1,26 @@
+--- ./hotspot/src/os/bsd/vm/os_bsd.cpp 2016-06-01 20:57:38.276230000 -0500
++++ ./hotspot/src/os/bsd/vm/os_bsd.cpp 2016-06-01 20:56:46.380667000 -0500
+@@ -767,6 +767,11 @@
+ guarantee(unique_thread_id != 0, "unique thread id was not found");
+ osthread->set_unique_thread_id(unique_thread_id);
+ #endif
++#ifdef __FreeBSD__
++ uint64_t unique_thread_id = os::Bsd::gettid();
++ guarantee(unique_thread_id != 0, "unique thread id was not found");
++ osthread->set_unique_thread_id(unique_thread_id);
++#endif
+ // initialize signal mask for this thread
+ os::Bsd::hotspot_sigmask(thread);
+
+@@ -930,6 +935,11 @@
+ guarantee(unique_thread_id != 0, "just checking");
+ osthread->set_unique_thread_id(unique_thread_id);
+ #endif
++#ifdef __FreeBSD__
++ uint64_t unique_thread_id = os::Bsd::gettid();
++ guarantee(unique_thread_id != 0, "unique thread id was not found");
++ osthread->set_unique_thread_id(unique_thread_id);
++#endif
+ osthread->set_pthread_id(::pthread_self());
+
+ // initialize floating point control register