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

Drop extraneous libc overrides #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

neobrain
Copy link
Member

@neobrain neobrain commented Jan 7, 2022

Changing symbol visibility (see #1) wasn't actually necessary. The true issue was that upstream jemalloc already overrides these symbols, so we didn't need our own definitions in the first place.

As outlined upstream:

You might say that those [upstream] declarations have je_ prefix, but when they're added to jemalloc.h, there's #define je_malloc malloc placed before those declarations. See include/jemalloc/jemalloc.sh that generates jemalloc.h. I admit - that's very confusing.

Tested against FEXConfig and Ender Lilies (with thunks).

Changing symbol visibility wasn't actually necessary. The true issue was
that upstream jemalloc already overrides these symbols, so we didn't need
these definitions in the first place.

This reverts the following commits:
* dea850b ("Adds missing posix_memalign alias")
* 32a326c ("Override regular malloc symbols as well")
* be75f8a ("Override the correct malloc_usable_size symbol")
* 5ac9b45 ("Make sure to override __malloc_usable_size")
* 9c3fd4b ("Use visibility("default") attribute for libc overrides")
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.

1 participant