-
Notifications
You must be signed in to change notification settings - Fork 1.2k
util: Change TraceThread's "name" type: "const char*" -> "const std::string" #3609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…string" Having "const char*" leads to undefined behaviour if the "const char*" is deallocated before the thread used it. Co-Authored-By: UdjinM6 <[email protected]>
3b6254a to
dfbb81b
Compare
|
Applied the changes and renamed the commit + PR title! |
PastaPastaPasta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
codablock
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
UdjinM6
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
…string" (dashpay#3609) Having "const char*" leads to undefined behaviour if the "const char*" is deallocated before the thread used it. Co-Authored-By: UdjinM6 <[email protected]> Co-authored-by: UdjinM6 <[email protected]>
|
backported in #3670 |
…string" (dashpay#3609) Having "const char*" leads to undefined behaviour if the "const char*" is deallocated before the thread used it. Co-Authored-By: UdjinM6 <[email protected]> Co-authored-by: UdjinM6 <[email protected]>
Having
const char*leads to undefined behaviour if theconst char*is deallocated before the thread used it.This wasn't an issue so far since there were no dynamic thread names but #3601 kind of requires this and i thought that should rather be a separate PR then.