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

Inline::Perl5 does not work with jemalloc #137

Open
samcv opened this issue Oct 19, 2019 · 0 comments
Open

Inline::Perl5 does not work with jemalloc #137

samcv opened this issue Oct 19, 2019 · 0 comments

Comments

@samcv
Copy link
Contributor

samcv commented Oct 19, 2019

Inline::Perl5 takes Perl 5's compilation options for compiling itself. If Perl 5 uses jemalloc, this causes Inline::Perl5 to be broken due to jemalloc using all of the TLS (thread local storage). You can't dlopen something that uses jemalloc from a program also using jemalloc. Not sure if it would make sense to just remove -ljemalloc from the LDFLAGS of Perl 5. For more info see jemalloc/jemalloc#937, the developers of jemalloc say you should never dlopen a shared object that uses jemalloc from a program also using jemalloc. So it may be safe just to never try to do this when compiling Inline::Perl5

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

No branches or pull requests

1 participant