[][src]Module parity_util_mem::allocators

default allocator management Features are:

  • windows:
  • no features: default implementation from servo heapsize crate
  • weealloc: default to estimate_size
  • dlmalloc: default to estimate_size
  • jemalloc: default windows allocator is used instead
  • mimalloc: use mimallocator crate
  • arch x86:
  • no features: use default alloc
  • jemalloc: use jemallocator crate
  • weealloc: default to estimate_size
  • dlmalloc: default to estimate_size
  • mimalloc: use mimallocator crate
  • arch x86/macos:
  • no features: use default alloc, requires using estimate_size
  • jemalloc: use jemallocator crate
  • weealloc: default to estimate_size
  • dlmalloc: default to estimate_size
  • mimalloc: use mimallocator crate
  • arch wasm32:
  • no features: default to estimate_size
  • weealloc: default to estimate_size
  • dlmalloc: default to estimate_size
  • jemalloc: compile error
  • mimalloc: compile error (until https://github.com/microsoft/mimalloc/pull/32 is merged)

Traits

MallocSizeOfExt

Extension methods for MallocSizeOf trait, do not implement directly. It allows getting heapsize without exposing MallocSizeOfOps (a single default MallocSizeOfOps is used for each call).

Functions

new_malloc_size_ops

Get a new instance of a MallocSizeOfOps