mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-11 01:39:31 +03:00
make decommit size equal to slice size
This commit is contained in:
parent
c46a6f66c6
commit
32170897dd
1 changed files with 2 additions and 2 deletions
|
@ -309,10 +309,10 @@ typedef enum mi_segment_kind_e {
|
||||||
// the corresponding MI_COMMIT_SIZE area is committed.
|
// the corresponding MI_COMMIT_SIZE area is committed.
|
||||||
// The MI_COMMIT_SIZE must be a multiple of the slice
|
// The MI_COMMIT_SIZE must be a multiple of the slice
|
||||||
// size. If it is equal we have the most fine grained
|
// size. If it is equal we have the most fine grained
|
||||||
// decommit but in practice 2x seems to perform better.
|
// decommit (but in practice 2x seems to perform better).
|
||||||
// ------------------------------------------------------
|
// ------------------------------------------------------
|
||||||
|
|
||||||
#define MI_COMMIT_SIZE (2*MI_SEGMENT_SLICE_SIZE)
|
#define MI_COMMIT_SIZE (MI_SEGMENT_SLICE_SIZE)
|
||||||
#define MI_COMMIT_MASK_BITS (MI_SEGMENT_SIZE / MI_COMMIT_SIZE)
|
#define MI_COMMIT_MASK_BITS (MI_SEGMENT_SIZE / MI_COMMIT_SIZE)
|
||||||
#define MI_COMMIT_MASK_FIELD_BITS MI_SIZE_BITS
|
#define MI_COMMIT_MASK_FIELD_BITS MI_SIZE_BITS
|
||||||
#define MI_COMMIT_MASK_FIELD_COUNT (MI_COMMIT_MASK_BITS / MI_COMMIT_MASK_FIELD_BITS)
|
#define MI_COMMIT_MASK_FIELD_COUNT (MI_COMMIT_MASK_BITS / MI_COMMIT_MASK_FIELD_BITS)
|
||||||
|
|
Loading…
Add table
Reference in a new issue