File: usable_size.rs

package info (click to toggle)
rust-tikv-jemallocator 0.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 220 kB
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 204 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
use tikv_jemallocator::Jemalloc;

#[global_allocator]
static A: Jemalloc = Jemalloc;

#[test]
fn smoke() {
    let a = Box::new(3_u32);
    assert!(unsafe { tikv_jemallocator::usable_size(&*a) } >= 4);
}