Skip to content

Commit

Permalink
Auto merge of #1956 - integer32llc:sadmac, r=jtgeibel
Browse files Browse the repository at this point in the history
Disable the background_threads jemallocator feature

It's not supported on macOS :(

![Sad mac icon](https://user-images.githubusercontent.com/193874/70942958-c20d1880-201d-11ea-88bb-4f4188ce0d36.png)

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
  • Loading branch information
bors committed Dec 19, 2019
2 parents 1fc6bfa + 7101ff3 commit 4f2207f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ derive_deref = "1.0.0"
reqwest = "0.9.1"
tempdir = "0.3.7"
parking_lot = "0.7.1"
jemallocator = { version = "0.3", features = ['unprefixed_malloc_on_supported_platforms', 'profiling', "background_threads"] }
jemallocator = { version = "0.3", features = ['unprefixed_malloc_on_supported_platforms', 'profiling'] }

lettre = "0.9"
lettre_email = "0.9"
Expand Down

0 comments on commit 4f2207f

Please sign in to comment.