Set thread pool thread name just based on string pointer check. (mono/mono#16637)
authorJay Krell <jaykrell@microsoft.com>
Tue, 7 Jan 2020 14:01:22 +0000 (06:01 -0800)
committerAleksey Kliger (λgeek) <alklig@microsoft.com>
Tue, 7 Jan 2020 14:01:22 +0000 (09:01 -0500)
commit887bb46584d37bbab6649490fc91c9d1de9abcf4
tree8107c4c8d2f2ea594c9ec58247d3e83c0a9306be
parent992b1aae569aef03acdb4ed2981784ecb5bbeda7
Set thread pool thread name just based on string pointer check. (mono/mono#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.

Commit migrated from https://github.com/mono/mono/commit/2129ac6c282560e3039a38de9ebbebcdfab6f149
src/mono/configure.ac
src/mono/mono/metadata/object-internals.h
src/mono/mono/metadata/threadpool.c
src/mono/mono/metadata/threads-types.h
src/mono/mono/metadata/threads.c
src/mono/netcore/System.Private.CoreLib/src/System/Threading/Thread.Mono.cs