Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Krell <jaykrell@microsoft.com>2020-01-07 17:01:22 +0300
committerAleksey Kliger (λgeek) <alklig@microsoft.com>2020-01-07 17:01:22 +0300
commit2129ac6c282560e3039a38de9ebbebcdfab6f149 (patch)
tree59b8fa07749060628649017da0389e75cef237f3 /netcore
parent0ccf503f0a315cf8e1ba6a4e40ceb7119e7e7282 (diff)
Set thread pool thread name just based on string pointer check. (#16637)
* Set thread pool thread name just based on string pointer check. When the generation-based solution went in, there were not yet constant thread names, so a pointer based approach could fail due to reuse. We can do slightly simpler now. * Remove the generation field which is no longer needed. Remove the duplicated knowledge of how to set a constant and put it behind a funny sounding but perhaps reasonable flag. Revise corlib version.
Diffstat (limited to 'netcore')
-rw-r--r--netcore/System.Private.CoreLib/src/System/Threading/Thread.Mono.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/netcore/System.Private.CoreLib/src/System/Threading/Thread.Mono.cs b/netcore/System.Private.CoreLib/src/System/Threading/Thread.Mono.cs
index 102e79acc40..4ebd11bccf5 100644
--- a/netcore/System.Private.CoreLib/src/System/Threading/Thread.Mono.cs
+++ b/netcore/System.Private.CoreLib/src/System/Threading/Thread.Mono.cs
@@ -22,8 +22,7 @@ namespace System.Threading
IntPtr native_handle; // used only on Win32
/* accessed only from unmanaged code */
private IntPtr name;
- private IntPtr name_generation;
- private int name_free;
+ private int name_free; // bool
private int name_length;
private ThreadState state;
private object abort_exc;