This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
Replace numeric thread id by an opaque one - #1002
Merged
Merged
Conversation
Member
Author
|
@smosier can you take a look please? |
Member
Author
|
Hmm, it seems the GetCurrentThreadId is called from somewhere in the jit mode. I need to look into that. |
This change replaces usages of the uint thread id by EEThreadId at places where we use it for thread matching. It also adds new PAL function GetPalThreadIdForLogging that returns a numeric thread id for logging purposes if the target platform supports it. The reason for this change is that in pthreads, thread id is an opaque struct and numeric id existence is platform specific.
janvorli
force-pushed
the
implement-pal-thread-id
branch
from
March 10, 2016 14:02
1e38669 to
9a04f2c
Compare
Member
Author
|
Fixed the problem - the |
Contributor
|
Looks good. |
Member
Author
|
Implements part of #644 |
janvorli
added a commit
that referenced
this pull request
Mar 10, 2016
Replace numeric thread id by an opaque one
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change replaces usages of the uint thread id by EEThreadId at
places where we use it for thread matching. It also adds new
PAL function PalGetThreadIdForLogging that returns a numeric thread
id for logging purposes if the target platform supports it.
The reason for this change is that in pthreads, thread id is an
opaque struct and numeric id existence is platform specific.
Finally, I have changed the return value of the
GCToOSInterface::GetPalThreadIdForLogging to uint64_t so
that we can get and log the full id e.g. on OSX.