This is an archive of the discontinued LLVM Phabricator instance.

[asan] Add argument to allow fake stack to be initialized during thread init
AbandonedPublic

Authored by waltl on May 4 2018, 1:50 PM.

Details

Summary

This will be used on RTEMS, where we prefer to allocate the memory up
front, rather than on first use which may be in a context
(i.e. interrupt handler) that is unable to allocate memory.

Diff Detail

Event Timeline

waltl created this revision.May 4 2018, 1:50 PM
kcc added a comment.May 4 2018, 2:40 PM

What if we try to just always call AsyncSignalSafeLazyInitFakeStack here?
There used to be a reason why this was done lazily, but I don't remember if we still have that reason.

waltl added a comment.May 7 2018, 3:45 PM
In D46467#1088573, @kcc wrote:

What if we try to just always call AsyncSignalSafeLazyInitFakeStack here?
There used to be a reason why this was done lazily, but I don't remember if we still have that reason.

That would be great. I can prepare a commit for that.

waltl added a comment.May 8 2018, 9:13 PM
In D46467#1088573, @kcc wrote:

What if we try to just always call AsyncSignalSafeLazyInitFakeStack here?
There used to be a reason why this was done lazily, but I don't remember if we still have that reason.

That would be great. I can prepare a commit for that.

See https://reviews.llvm.org/D46626.

waltl abandoned this revision.May 10 2018, 11:14 AM

Obsolete.