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

Correctly free pthread TSD storage #9025

Merged
merged 2 commits into from
Jul 19, 2019

Conversation

quantum5
Copy link
Member

The pointer is stored pthread.threadInfoStruct under the tsd field, and retrieved as local variable tlsMemory. However, pthread.tlsMemory is freed. Printing confirms that pthread.tlsMemory is undefined.

@quantum5 quantum5 requested review from kripken and juj July 18, 2019 23:58
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@quantum5 quantum5 merged commit 6e87311 into emscripten-core:incoming Jul 19, 2019
belraquib pushed a commit to belraquib/emscripten that referenced this pull request Dec 23, 2020
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