Skip to content

Conversation

@davidchisnall
Copy link
Collaborator

With these changes, 32- and 64-bit userland builds, static and dynamically linked 64-bit versions are tested (32-bit ones are not, but hopefully work!).

Provide a hook so that the exported malloc symbols can be weak.  This is
mostly needed so that rtld, which statically links libc.a, can override
the symbols.

Add a bootstrap allocator so that statically linked binaries can have
their TLS space allocated before malloc is called and uses TLS.
@davidchisnall davidchisnall requested a review from mjp41 January 17, 2019 10:23
mjp41
mjp41 previously approved these changes Jan 17, 2019
Copy link
Member

@mjp41 mjp41 left a comment

Choose a reason for hiding this comment

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

LGTM, couple of minor things. I don't think they are essential, so feel free to merge.

Move slow_allocator into a separate header in the snmalloc namespace and
rename it for consistency with the rest of the codebase.  Delete its
copy and move constructors / assignment operators.
@mjp41 mjp41 merged commit 07b19d4 into master Jan 18, 2019
@davidchisnall davidchisnall deleted the fbsdlibc branch January 18, 2019 16:10
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.

3 participants