Skip to content

Commit 79176c7

Browse files
committed
Auto merge of #2031 - jtgeibel:ci/malloc_conf, r=carols10cents
Enable debug MALLOC_CONF options on CI On top of the production configuration, this commit adds two options: * `abort:true` - most jemalloc warnings become fatal ([opt.abort]) * `junk:true` - both allocated and deallocated memory will be initialized to 0xa5. ([opt.junk]) Combined with the existing `abort_conf:true`, this should be equivalent to enabling the `debug` feature of `jemallocator`. We cannot enable this feature in `Cargo.toml` because that would affect performance in production. [opt.abort]: http://jemalloc.net/jemalloc.3.html#opt.abort [opt.junk]: http://jemalloc.net/jemalloc.3.html#opt.junk r? @carols10cents
2 parents 45b8dbf + 8cd03c7 commit 79176c7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
TEST_DATABASE_URL: postgres://postgres:@localhost/cargo_registry_test
6767
CARGO_INCREMENTAL: 0
6868
RUSTFLAGS: "-C debuginfo=0 -D warnings"
69+
MALLOC_CONF: "background_thread:true,abort_conf:true,abort:true,junk:true"
6970

7071
steps:
7172
- uses: actions/checkout@v2-beta

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ env:
2828
- PGPORT=5433
2929
- PATH=$HOME/.cargo/bin:$PATH
3030
- RUSTFLAGS="-C debuginfo=0 -D warnings"
31+
- MALLOC_CONF=background_thread:true,abort_conf:true,abort:true,junk:true
3132

3233
install:
3334
- sudo cp /etc/postgresql/10/main/pg_hba.conf /etc/postgresql/11/main/pg_hba.conf

0 commit comments

Comments
 (0)