Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

je_malloc_usable_size vs. malloc_usable_size - unknown symbol for macos #97

Closed
aarlt opened this issue Jul 19, 2018 · 2 comments
Closed

Comments

@aarlt
Copy link

aarlt commented Jul 19, 2018

Disclaimer: I'm not a rust developer.

It looks like that https://github.com/servo/heapsize/blob/master/src/lib.rs#L44 seem to create linking problems - at least on macos 10.13.6. It looks like that you rename the symbol to be je_malloc_usable_size for macos, ios and android systems. At least for macos - after installing jemalloc with brew install jemalloc - the jemalloc library that will be installed doesn't define a symbol named je_malloc_usable_size - but there is a symbol malloc_usable_size defined here.

The issue originally came up here: openethereum/parity-ethereum#9167.

@jdm
Copy link
Member

jdm commented Jul 19, 2018

Maybe the solution here is to add a non-default cargo feature named unprefixed_malloc that would inhibit this line. This would allow projects to override the defaults for whatever configuration they require.

@aarlt
Copy link
Author

aarlt commented Jul 20, 2018

@jdm thank you for your reply

@aarlt aarlt closed this as completed Oct 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants