Repository navigation
Link statically with custom jemalloc with disabled initial TLS - #941
Merged
ldorau merged 3 commits intoDec 5, 2024
Conversation
ldorau
force-pushed
the
Link_statically_with_custom_jemalloc_with_disabled_initial_TLS
branch
2 times, most recently
from
November 27, 2024 11:15
b9c4aff to
1478d88
Compare
3 tasks
ldorau
force-pushed
the
Link_statically_with_custom_jemalloc_with_disabled_initial_TLS
branch
from
November 27, 2024 13:26
1478d88 to
48145aa
Compare
bratpiorka
previously requested changes
Nov 27, 2024
ldorau
force-pushed
the
Link_statically_with_custom_jemalloc_with_disabled_initial_TLS
branch
from
November 27, 2024 14:04
48145aa to
b024e53
Compare
ldorau
force-pushed
the
Link_statically_with_custom_jemalloc_with_disabled_initial_TLS
branch
15 times, most recently
from
November 28, 2024 13:14
e437bbf to
fd5bd4e
Compare
ldorau
marked this pull request as ready for review
November 28, 2024 14:23
ldorau
force-pushed
the
Link_statically_with_custom_jemalloc_with_disabled_initial_TLS
branch
from
November 28, 2024 14:52
fd5bd4e to
ee811cb
Compare
Contributor
Author
|
There is still one issue:
|
Contributor
Author
I am testing the previous release of jemalloc (v5.2.1) now... |
vinser52
reviewed
Dec 4, 2024
vinser52
reviewed
Dec 4, 2024
vinser52
reviewed
Dec 4, 2024
PatKamin
reviewed
Dec 4, 2024
PatKamin
reviewed
Dec 4, 2024
ldorau
force-pushed
the
Link_statically_with_custom_jemalloc_with_disabled_initial_TLS
branch
from
December 4, 2024 11:45
5298b5e to
aed8c12
Compare
vinser52
reviewed
Dec 4, 2024
ldorau
force-pushed
the
Link_statically_with_custom_jemalloc_with_disabled_initial_TLS
branch
from
December 4, 2024 12:37
aed8c12 to
1a11bb9
Compare
Signed-off-by: Lukasz Dorau <[email protected]>
Link statically with custom jemalloc built from sources
with the following non-default options enabled:
--with-jemalloc-prefix=je_ - add je_ prefix to all public APIs
--disable-cxx - Disable C++ integration. This will cause new and delete
operators implementations to be omitted.
--disable-initial-exec-tls - Disable the initial-exec TLS model for jemalloc's
internal thread-local storage (on those platforms that support
explicit settings). This can allow jemalloc to be dynamically
loaded after program startup (e.g. using dlopen).
Fixes: oneapi-src#891
Fixes: oneapi-src#894
Fixes: oneapi-src#903
Signed-off-by: Lukasz Dorau <[email protected]>
ldorau
force-pushed
the
Link_statically_with_custom_jemalloc_with_disabled_initial_TLS
branch
from
December 4, 2024 12:39
1a11bb9 to
fe7aaff
Compare
ldorau
force-pushed
the
Link_statically_with_custom_jemalloc_with_disabled_initial_TLS
branch
3 times, most recently
from
December 4, 2024 13:20
63ecc30 to
2802736
Compare
vinser52
reviewed
Dec 4, 2024
| // ctest looks for "PASSED" in the output | ||
| std::cout << "PASSED" << std::endl; | ||
|
|
||
| #if defined(UMF_BUILD_LIBUMF_POOL_DISJOINT) |
There was a problem hiding this comment.
On L124 the following macro is used: #if defined(UMF_POOL_DISJOINT_ENABLED).
Please decide which is appropriate UMF_POOL_DISJOINT_ENABLED or UMF_BUILD_LIBUMF_POOL_DISJOINT and unify
Contributor
There was a problem hiding this comment.
In our CMake files *_ENABLED = user set appropriate BUILD flag + all dependencies needed for build are satisfied so we actually can use given component.
@ldorau please use *_ENABLED in c/cpp files
PatKamin
approved these changes
Dec 4, 2024
lukaszstolarczuk
requested changes
Dec 4, 2024
ldorau
force-pushed
the
Link_statically_with_custom_jemalloc_with_disabled_initial_TLS
branch
from
December 4, 2024 15:28
2802736 to
cd4e7c2
Compare
bratpiorka
reviewed
Dec 4, 2024
ldorau
force-pushed
the
Link_statically_with_custom_jemalloc_with_disabled_initial_TLS
branch
from
December 4, 2024 15:42
cd4e7c2 to
003075f
Compare
Remove the separate static `jemalloc_pool` library. Make the `UMF_BUILD_LIBUMF_POOL_JEMALLOC` option turned ON by default. Incorporate jemalloc_pool into libumf. Signed-off-by: Lukasz Dorau <[email protected]>
ldorau
force-pushed
the
Link_statically_with_custom_jemalloc_with_disabled_initial_TLS
branch
from
December 4, 2024 16:01
003075f to
614c4b5
Compare
lukaszstolarczuk
approved these changes
Dec 5, 2024
ldorau
deleted the
Link_statically_with_custom_jemalloc_with_disabled_initial_TLS
branch
December 5, 2024 09:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Link statically with custom jemalloc built from sources
with the following non-default options enabled:
--with-jemalloc-prefix=je_- add je_ prefix to all public APIs--disable-cxx- Disable C++ integration. This will cause new and delete operators implementations to be omitted.--disable-initial-exec-tls- Disable the initial-exec TLS model for jemalloc's internal thread-local storage (on those platforms that support explicit settings). This can allow jemalloc to be dynamically loaded after program startup (e.g. usingdlopen()).Fixes: #891
Fixes: #894
Fixes: #903
Checklist