| flags |
If func is set to 1, flags indicates the memory strategy to set, as follows:
| Bit |
Meaning |
| 0 |
| 0 |
No action |
| 1 |
Check bytes strategy: prepend and append check bytes to each memory allocation |
|
| 1 |
| 0 |
No action |
| 1 |
Check freed memory strategy: monitor for subsequent corruption the last n
memory blocks freed, where n is the current value as set when func is
set to 3 | |
| 2 |
| 0 |
No action |
| 1 |
Reuse strategy: allow freed memory being monitored for corruption to be used
to satisfy allocation requests | |
| 3-29 |
Reserved for future use. Must be set to zero. |
| 30 |
| 0 |
No action |
| 1 |
Compatibility strategy: maintain compatibility with previous versions of
the run-time system | |
| 31 |
| 0 |
No action |
| 1 |
Validate strategy: validate memory each time an allocation or free operation
occurs | |
If func is set to 3, flags indicates the number of freed memory blocks
to be monitored for corruption |