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

Add disable_initial_exec_tls feature for jemalloc-ctl #59

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

Frankonly
Copy link

Default feature of tikv-jemalloc-sys can cause error when using pyo3 with jemalloc. Add disable_initial_exec_tls feature for jemalloc-ctl to avoid tikv-jemalloc-sys's default feature.
PyO3/pyo3#678

@@ -26,7 +26,7 @@ is-it-maintained-open-issues = { repository = "tikv/jemallocator" }
maintenance = { status = "actively-developed" }

[dependencies]
tikv-jemalloc-sys = { path = "../jemalloc-sys", version = "0.5.0" }
tikv-jemalloc-sys = { path = "../jemalloc-sys", version = "0.5.0", default-features = false }
Copy link
Member

Choose a reason for hiding this comment

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

Why need to disable default features?

Copy link
Author

Choose a reason for hiding this comment

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

I just followed Cargo.toml from jemallocator folder, maybe I should not disable it?

Copy link
Member

Choose a reason for hiding this comment

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

Better keep it the old way, otherwise it becomes a broken change.

Copy link
Author

Choose a reason for hiding this comment

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

Done

@Frankonly Frankonly requested a review from BusyJay July 18, 2023 10:32
Signed-off-by: Likai Feng <likai.feng@metabit-trading.com>
@Frankonly
Copy link
Author

Aarch64 test has no machine from pingcap.

@Frankonly
Copy link
Author

@BusyJay

@BusyJay BusyJay merged commit 61999f2 into tikv:main Jul 19, 2023
7 of 8 checks passed
@Frankonly
Copy link
Author

@BusyJay Can you make a new release to crate.io?

@BusyJay
Copy link
Member

BusyJay commented Jul 27, 2023

Published

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.

2 participants