mimalloc is a compact general purpose allocator with excellent performance.
221 matches across 5 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/main-override.cpp | 1 | #include <stdlib.h> |
| LOW | test/test-stress.c | 21 | #include <stdbool.h> |
| LOW | test/test-stress.c | 61 | #define custom_free(p) free(p) |
| LOW | test/main-override-static.c | 41 | mi_version(); |
| LOW | test/main-override-static.c | 361 | }; |
| LOW | test/test-api.c | 21 | we therefore test the API over various inputs. Please add more tests :-) |
| LOW | include/mimalloc.h | 1 | /* ---------------------------------------------------------------------------- |
| LOW | include/mimalloc.h | 21 | #define mi_attr_noexcept throw() |
| LOW | include/mimalloc.h | 41 | #define mi_decl_export |
| LOW | include/mimalloc.h | 61 | #define mi_attr_alloc_align(p) |
| LOW | include/mimalloc.h | 81 | #define mi_attr_alloc_size2(s1,s2) __attribute__((alloc_size(s1,s2))) |
| LOW | include/mimalloc.h | 361 | #define mi_reallocn_tp(p,tp,n) ((tp*)mi_reallocn(p,n,sizeof(tp))) |
| LOW | include/mimalloc.h | 381 | #define mi_theap_malloc(hp,sz) mi_heap_malloc(hp,sz) |
| LOW | include/mimalloc.h | 501 | |
| LOW | include/mimalloc-override.h | 21 | #define malloc(n) mi_malloc(n) |
| LOW | include/mimalloc-override.h | 41 | |
| LOW | include/mimalloc-override.h | 61 | #define _aligned_recalloc(p,c,n,a) mi_aligned_recalloc(p,c,n,a) |
| LOW | include/mimalloc-new-delete.h | 1 | /* ---------------------------------------------------------------------------- |
| LOW | include/mimalloc-new-delete.h | 21 | #if defined(__cplusplus) |
| LOW | include/mimalloc/internal.h | 21 | // Compiler defines |
| LOW | include/mimalloc/internal.h | 41 | #define mi_decl_cold |
| LOW | include/mimalloc/internal.h | 61 | #define mi_decl_cold |
| LOW | include/mimalloc/internal.h | 81 | #endif |
| LOW | include/mimalloc/internal.h | 301 | /* ----------------------------------------------------------- |
| LOW | include/mimalloc/internal.h | 321 | #define EOVERFLOW (75) |
| LOW | include/mimalloc/internal.h | 341 | #endif |
| LOW | include/mimalloc/internal.h | 361 | #define MI_INIT4(x) x(),x(),x(),x() |
| LOW | include/mimalloc/internal.h | 441 | |
| LOW | include/mimalloc/internal.h | 1081 | static inline size_t mi_popcount(size_t x) { |
| LOW | include/mimalloc/types.h | 1 | /* ---------------------------------------------------------------------------- |
| LOW | include/mimalloc/types.h | 21 | // using plain "page" for mimalloc pages (`mi_page_t`). |
| LOW | include/mimalloc/types.h | 41 | // ------------------------------------------------------ |
| LOW | include/mimalloc/types.h | 61 | // #define MI_SECURE 5 // guard page at the end of each mimalloc page (expensive!) (`-DMI_SECURE_FULL=ON`) |
| LOW | include/mimalloc/types.h | 81 | #define MI_GUARDED 1 |
| LOW | include/mimalloc/types.h | 101 | |
| LOW | include/mimalloc/types.h | 121 | // p == (void*)((intptr_t)p)) |
| LOW | include/mimalloc/types.h | 141 | # define MI_SIZE_SHIFT (2) |
| LOW | include/mimalloc/types.h | 161 | #define MI_KiB (MI_ZU(1024)) |
| LOW | include/mimalloc/types.h | 181 | #endif |
| LOW | include/mimalloc/types.h | 201 | #define MI_SMALL_OBJ_SIZE_MAX (MI_SMALL_PAGE_SIZE/8) // 8 KiB on 64-bit |
| LOW | include/mimalloc/types.h | 221 | |
| LOW | include/mimalloc/types.h | 281 | struct { |
| LOW | include/mimalloc/types.h | 301 | // |
| LOW | include/mimalloc/types.h | 381 | // size. If it is equal we have the most fine grained |
| LOW | include/mimalloc/types.h | 441 | } mem; |
| LOW | include/mimalloc/types.h | 501 | } mi_segment_t; |
| LOW | include/mimalloc/types.h | 641 | #if !defined(MI_DEBUG_UNINIT) |
| LOW | include/mimalloc/types.h | 661 | #endif |
| LOW | include/mimalloc/types.h | 681 | |
| LOW | include/mimalloc/track.h | 41 | #define mi_track_mem_undefined(p,size) |
| LOW | include/mimalloc/track.h | 61 | #define mi_track_mem_noaccess(p,size) VALGRIND_MAKE_MEM_NOACCESS(p,size) |
| LOW | include/mimalloc/track.h | 81 | #define MI_TRACK_ENABLED 1 |
| LOW | include/mimalloc/track.h | 101 | |
| LOW | include/mimalloc/track.h | 121 | #endif |
| LOW | include/mimalloc/prim.h | 1 | /* ---------------------------------------------------------------------------- |
| LOW | include/mimalloc/prim.h | 41 | // Allocate OS memory. Return NULL on error. |
| LOW | include/mimalloc/prim.h | 61 | |
| LOW | include/mimalloc/prim.h | 121 | |
| LOW | include/mimalloc/prim.h | 241 | #endif |
| LOW | include/mimalloc/prim.h | 341 | We try to circumvent this in an efficient way: |
| 127 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | CMakeLists.txt | 105 | # ----------------------------------------------------------------------------- |
| MEDIUM | CMakeLists.txt | 107 | # ----------------------------------------------------------------------------- |
| MEDIUM | CMakeLists.txt | 164 | # ----------------------------------------------------------------------------- |
| MEDIUM | CMakeLists.txt | 166 | # ----------------------------------------------------------------------------- |
| MEDIUM | CMakeLists.txt | 543 | # ----------------------------------------------------------------------------- |
| MEDIUM | CMakeLists.txt | 545 | # ----------------------------------------------------------------------------- |
| MEDIUM | CMakeLists.txt | 608 | # ----------------------------------------------------------------------------- |
| MEDIUM | CMakeLists.txt | 610 | # ----------------------------------------------------------------------------- |
| MEDIUM | CMakeLists.txt | 741 | # ----------------------------------------------------------------------------- |
| MEDIUM | CMakeLists.txt | 743 | # ----------------------------------------------------------------------------- |
| MEDIUM | CMakeLists.txt | 786 | # ----------------------------------------------------------------------------- |
| MEDIUM | CMakeLists.txt | 788 | # ----------------------------------------------------------------------------- |
| MEDIUM | azure-pipelines.yml | 183 | # ---------------------------------------------------------- |
| MEDIUM | azure-pipelines.yml | 185 | # ---------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 3 | #----------------------------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 5 | #----------------------------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 12 | #--------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 14 | #--------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 36 | #--------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 38 | #--------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 52 | #--------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 54 | #--------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 87 | #--------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 89 | #--------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 117 | #--------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 119 | #--------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 148 | #--------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 150 | #--------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 205 | #--------------------------------------------------------- |
| MEDIUM | bin/bundle.sh | 207 | #--------------------------------------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | docs/jquery.js | 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f |
| CRITICAL | docs/jquery.js | 8 | !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(y){"use strict" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .github/workflows/release.yaml | 46 | # Create a release: https://github.com/softprops/action-gh-release (MIT license) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/prim/osx/alloc-override-zone.c | 399 | // it seems less robust than using interpose. |