Buckets:
| /* ---------------------------------------------------------------------------- | |
| Copyright (c) 2018-2023, Microsoft Research, Daan Leijen | |
| This is free software; you can redistribute it and/or modify it under the | |
| terms of the MIT license. A copy of the license can be found in the file | |
| "LICENSE" at the root of this distribution. | |
| -----------------------------------------------------------------------------*/ | |
| /* ------------------------------------------------------------------------------------------------------ | |
| Track memory ranges with macros for tools like Valgrind address sanitizer, or other memory checkers. | |
| These can be defined for tracking allocation: | |
| #define mi_track_malloc_size(p,reqsize,size,zero) | |
| #define mi_track_free_size(p,_size) | |
| The macros are set up such that the size passed to `mi_track_free_size` | |
| always matches the size of `mi_track_malloc_size`. (currently, `size == mi_usable_size(p)`). | |
| The `reqsize` is what the user requested, and `size >= reqsize`. | |
| The `size` is either byte precise (and `size==reqsize`) if `MI_PADDING` is enabled, | |
| or otherwise it is the usable block size which may be larger than the original request. | |
| Use `_mi_block_size_of(void* p)` to get the full block size that was allocated (including padding etc). | |
| The `zero` parameter is `true` if the allocated block is zero initialized. | |
| Optional: | |
| #define mi_track_align(p,alignedp,offset,size) | |
| #define mi_track_resize(p,oldsize,newsize) | |
| #define mi_track_init() | |
| The `mi_track_align` is called right after a `mi_track_malloc` for aligned pointers in a block. | |
| The corresponding `mi_track_free` still uses the block start pointer and original size (corresponding to the `mi_track_malloc`). | |
| The `mi_track_resize` is currently unused but could be called on reallocations within a block. | |
| `mi_track_init` is called at program start. | |
| The following macros are for tools like asan and valgrind to track whether memory is | |
| defined, undefined, or not accessible at all: | |
| #define mi_track_mem_defined(p,size) | |
| #define mi_track_mem_undefined(p,size) | |
| #define mi_track_mem_noaccess(p,size) | |
| -------------------------------------------------------------------------------------------------------*/ | |
| // valgrind tool | |
| // address sanitizer | |
| // windows event tracing | |
| // no tracking | |
| // ------------------- | |
| // Utility definitions | |
Xet Storage Details
- Size:
- 5.57 kB
- Xet hash:
- 8bce4d5c468fb218626ee073c9414270a8af849b58396f8c89b2471495a38f3f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.