-
Notifications
You must be signed in to change notification settings - Fork 645
Disable the background_threads jemallocator feature #1956
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
Conversation
It's not supported on macOS :(
@carols10cents I'm a bit torn between how we should handle this. I definitely wasn't expecting that moving the configuration flag from runtime to build-time would result in a change to runtime behavior. Maybe setting this at runtime is ignored on macOS? The docs say "spawns background worker threads on initialization (first Does Does running In summary, I guess my suggestions are:
|
To clarify on "a bit torn" above, the other option is to (for now) revert my PR outright. I was thinking this might be necessary, so that we could do an atomic style deploy on this change, but since we can configure at runtime with |
Using
|
No :(
Nope, it works:
Because my results aren't what you were expecting, does that change your thoughts on next steps? |
No, not really. I find the results rather curious though.
@bors r+ |
📌 Commit 7101ff3 has been approved by |
Disable the background_threads jemallocator feature It's not supported on macOS :(  When I try to `cargo run --bin server` on macOS Catalina 10.15.1, I get: ``` $ cargo run --bin server Finished dev [unoptimized + debuginfo] target(s) in 0.51s Running `target/debug/server` <jemalloc>: option background_thread currently supports pthread only memory allocation of 40 bytes failedAbort trap: 6 ``` Leave [the upgrade](#1953) but turn off the `background_threads` feature for now. [Someday we might be able to enable features per-target](rust-lang/cargo#1197), but that day is not today. r? @jtgeibel
☀️ Test successful - checks-travis |
It's not supported on macOS :(
When I try to
cargo run --bin server
on macOS Catalina 10.15.1, I get:Leave the upgrade but turn off the
background_threads
feature for now. Someday we might be able to enable features per-target, but that day is not today.r? @jtgeibel