Skip to main content

dr_alloc_flags_t_DR_ALLOC_COMMIT_ONLY

Constant dr_alloc_flags_t_DR_ALLOC_COMMIT_ONLY 

Source
pub const dr_alloc_flags_t_DR_ALLOC_COMMIT_ONLY: dr_alloc_flags_t = 128;
Expand description

This flag only applies to non-heap, non-DR memory (i.e., when both #DR_ALLOC_NON_HEAP and #DR_ALLOC_NON_DR are specified) on Windows. This flag must be combined with DR_ALLOC_FIXED_LOCATION. When this flag is specified, previously allocated memory is committed, just like the MEM_COMMIT Windows API flag (when this flag is not passed, the effect is MEM_RESERVE|MEM_COMMIT). When passed to dr_custom_free(), this flag causes a de-commit, just like the MEM_DECOMMIT Windows API flag. This flag cannot be combined with #DR_ALLOC_LOW_2GB and must include a non-NULL requested location (\p addr parameter).