Page MenuHomePhabricator

[compiler-rt][hwasan] Add InitState options to thread initialization

Authored by leonardchan on Jun 18 2021, 10:56 AM.



Similar to InitOptions in asan, we can use this optional struct for initializing some members thread objects before they are created. On linux, this is unused and can remain undefined. On fuchsia, this will just be the stack bounds.

Diff Detail

Event Timeline

leonardchan created this revision.Jun 18 2021, 10:56 AM
leonardchan requested review of this revision.Jun 18 2021, 10:56 AM
Herald added a subscriber: Restricted Project. · View Herald TranscriptJun 18 2021, 10:56 AM
phosek added inline comments.Jun 19 2021, 12:53 PM

If it's unused then you can omit the argument name to avoid the unused variable warning.

leonardchan marked an inline comment as done.

Updated and rebased.

eugenis accepted this revision.Jun 22 2021, 4:34 PM


This revision is now accepted and ready to land.Jun 22 2021, 4:34 PM