Fix benchmarks

This commit is contained in:
gnzlbg 2019-03-20 11:13:45 +01:00 committed by gnzlbg
parent 814b652603
commit 12ead2d2bc
4 changed files with 9 additions and 6 deletions

View File

@ -28,8 +28,9 @@ matrix:
env: TARGET=i686-unknown-linux-gnu
addons: *gcc_multilib
rust: stable
- name: "i686-unknown-linux-musl"
env: TARGET=i686-unknown-linux-musl NOBGT=1 NO_JEMALLOC_TESTS=1
# FIXME: blocked onhttps://github.com/jemalloc/jemalloc/issues/1464
# - name: "i686-unknown-linux-musl"
# env: TARGET=i686-unknown-linux-musl NOBGT=1 NO_JEMALLOC_TESTS=1
- name: "mips-unknown-linux-gnu"
env: TARGET=mips-unknown-linux-gnu NO_JEMALLOC_TESTS=1
- name: "mips64-unknown-linux-gnuabi64"

View File

@ -40,7 +40,7 @@ libc = { version = "^0.2.8", default-features = false }
[dev-dependencies]
paste = "0.1"
#jemalloc-ctl = { path = "jemalloc-ctl", version = "0.3.0" }
jemalloc-ctl = { path = "jemalloc-ctl", version = "0.3.0" }
[features]
default = ["background_threads_runtime_support"]

View File

@ -4,11 +4,13 @@
#![cfg(feature = "alloc_trait")]
extern crate jemallocator;
extern crate jemalloc_sys;
extern crate libc;
extern crate paste;
extern crate test;
use jemallocator::{ffi::MALLOCX_ALIGN, Jemalloc};
use jemallocator::Jemalloc;
use jemalloc_sys::MALLOCX_ALIGN;
use libc::c_int;
use std::{
alloc::{Alloc, Excess, Layout},

View File

@ -29,8 +29,8 @@ jemalloc-sys = { path = "../jemalloc-sys", version = "0.3.0" }
libc = { version = "0.2", default-features = false }
paste = { version = "0.1" }
#[dev-dependencies]
#jemallocator = { path = "..", version = "0.3.0" }
[dev-dependencies]
jemallocator = { path = "..", version = "0.3.0" }
[features]
default = []