FreeBSD Bugzilla – Attachment 187902 Details for
Bug 223589
[PATCH] java/openjdk8: support setting thread name in OpenJDK8
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
openjdk8 thread name patch
openjdk8-8.144.1.diff (text/plain), 1.71 KB, created by
nagy.attila
on 2017-11-10 08:35:14 UTC
(
hide
)
Description:
openjdk8 thread name patch
Filename:
MIME Type:
Creator:
nagy.attila
Created:
2017-11-10 08:35:14 UTC
Size:
1.71 KB
patch
obsolete
>Index: files/patch-hotspot-src-os-bsd-vm-os_bsd.cpp >=================================================================== >--- files/patch-hotspot-src-os-bsd-vm-os_bsd.cpp (revision 452274) >+++ files/patch-hotspot-src-os-bsd-vm-os_bsd.cpp (working copy) >@@ -1,6 +1,6 @@ >---- hotspot/src/os/bsd/vm/os_bsd.cpp.orig 2017-09-06 22:12:44 UTC >-+++ hotspot/src/os/bsd/vm/os_bsd.cpp >-@@ -189,7 +189,9 @@ julong os::Bsd::available_memory() { >+--- hotspot/src/os/bsd/vm/os_bsd.cpp.orig 2017-11-09 17:12:20.433597000 +0100 >++++ hotspot/src/os/bsd/vm/os_bsd.cpp 2017-11-09 17:15:24.165281000 +0100 >+@@ -189,7 +189,9 @@ > #ifdef __FreeBSD__ > static const char *vm_stats[] = { > "vm.stats.vm.v_free_count", >@@ -10,7 +10,7 @@ > "vm.stats.vm.v_inactive_count" > }; > size_t size; >-@@ -775,6 +777,11 @@ static void *java_start(Thread *thread) >+@@ -775,6 +777,11 @@ > guarantee(unique_thread_id != 0, "unique thread id was not found"); > osthread->set_unique_thread_id(unique_thread_id); > #endif >@@ -22,7 +22,7 @@ > // initialize signal mask for this thread > os::Bsd::hotspot_sigmask(thread); > >-@@ -938,6 +945,11 @@ bool os::create_attached_thread(JavaThre >+@@ -938,6 +945,11 @@ > guarantee(unique_thread_id != 0, "just checking"); > osthread->set_unique_thread_id(unique_thread_id); > #endif >@@ -34,3 +34,17 @@ > osthread->set_pthread_id(::pthread_self()); > > // initialize floating point control register >+@@ -3910,6 +3922,13 @@ >+ pthread_setname_np(buf); >+ } >+ #endif >++#ifdef __FreeBSD__ >++ if (name != NULL) { >++ char buf[MAXCOMLEN+1]; >++ snprintf(buf, sizeof(buf), "%s", name); >++ pthread_set_name_np(pthread_self(), buf); >++ } >++#endif >+ } >+ >+ bool os::distribute_processes(uint length, uint* distribution) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 223589
: 187902