Skip to content
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

Don't use pthread_*_np functions to get stack master thread #14501

Merged
merged 2 commits into from
Dec 30, 2015

Conversation

yuyichao
Copy link
Contributor

They seems to return bogus values for master thread on Linux.

For non-windows, this should be basically the same on master thread.

Buildbot runs:
http://buildbot.e.ip.saba.us:8010/builders/build_centos7.1-x64/builds/52
http://buildbot.e.ip.saba.us:8010/builders/build_osx10.9-x64/builds/51
http://buildbot.e.ip.saba.us:8010/builders/build_ubuntu12.04-x64/builds/49
http://buildbot.e.ip.saba.us:8010/builders/build_ubuntu12.04-x86/builds/50
http://buildbot.e.ip.saba.us:8010/builders/build_ubuntu14.04-x64/builds/50
http://buildbot.e.ip.saba.us:8010/builders/build_ubuntu14.04-x86/builds/49
Second commit:
http://buildbot.e.ip.saba.us:8010/builders/build_osx10.9-x64/builds/52

Ref #14473 (comment)
c.c. @tkelman

Also fix stack address detection on OSX since the signal (message?) handling thread cannot access the TLS value directly. The same logic is also used by #14190 and they should be combined when both are merged (to the version in this PR). c.c. @vtjnash

They seems to return bogus values for master thread on Linux and possibly OSX.
@vtjnash
Copy link
Member

vtjnash commented Dec 30, 2015

seems ok to me

yuyichao added a commit that referenced this pull request Dec 30, 2015
Don't use pthread_*_np functions to get stack master thread
@yuyichao yuyichao merged commit 01c701f into master Dec 30, 2015
@yuyichao yuyichao deleted the yyc/stack_rng branch December 30, 2015 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants