mirror of
https://github.com/ErnyTech/neomimalloc
synced 2024-06-18 10:50:01 +02:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
330af5b9ca | ||
|
3e35f5593f | ||
|
a3ef3650c6 | ||
|
09ae5e9879 | ||
|
a455e21c9b |
2
dub.json
2
dub.json
|
@ -8,6 +8,6 @@
|
|||
"license": "MPL-2.0",
|
||||
"systemDependencies" : "libc and thread support (e.g. glibc and pthread), to build also needs for cmake and a C toolchain",
|
||||
"dependencies": {
|
||||
"libmimalloc-sys": "==1.0.3"
|
||||
"libmimalloc-sys": "==1.0.6"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 1125271c2756ee1db1303918816fea35e08b3405
|
|
@ -73,15 +73,15 @@ extern(C) {
|
|||
/**
|
||||
* Runtime options.
|
||||
*/
|
||||
enum mi_option_t {
|
||||
mi_option_page_reset = 0, /** Reset page memory when it becomes free. */
|
||||
mi_option_cache_reset = 1, /** Reset segment memory when a segment is cached. */
|
||||
mi_option_pool_commit = 2, /** Commit segments in large pools. */
|
||||
mi_option_large_os_pages = 3, /** Use large os pages */
|
||||
mi_option_secure = 4,
|
||||
mi_option_show_stats = 5, /** Print statistics to stderr when the program is done. */
|
||||
mi_option_show_errors = 6, /** Print error messages to stderr. */
|
||||
mi_option_verbose = 7, /** Print verbose messages to stderr. */
|
||||
enum mi_option_t {
|
||||
mi_option_show_stats = 0, /** Print statistics to stderr when the program is done. */
|
||||
mi_option_show_errors = 1, /** Print error messages to stderr. */
|
||||
mi_option_verbose = 2, /** Print verbose messages to stderr. */
|
||||
mi_option_secure = 3, /** Experimental*/
|
||||
mi_option_pool_commit = 4, /** Experimental: Commit segments in large pools. */
|
||||
mi_option_large_os_pages = 5, /** Experimental: Use large os pages */
|
||||
mi_option_page_reset = 6, /** Experimental: Reset page memory when it becomes free. */
|
||||
mi_option_cache_reset = 7, /** Experimental: Reset segment memory when a segment is cached. */
|
||||
_mi_option_last = 8
|
||||
}
|
||||
|
||||
|
@ -620,6 +620,11 @@ extern(C) {
|
|||
*/
|
||||
@nogc pure @system nothrow bool mi_heap_visit_blocks(const(mi_heap_t)* heap, bool visit_all_blocks, mi_block_visit_fun visitor, const(void)* arg);
|
||||
|
||||
/**
|
||||
* Inspect the heap at runtime.
|
||||
*/
|
||||
@nogc pure @system nothrow bool mi_is_in_heap_region(const(void)* p);
|
||||
|
||||
/**
|
||||
* Set runtime behavior.
|
||||
*/
|
||||
|
@ -726,4 +731,24 @@ extern(C) {
|
|||
* mi prefixed implementations of various posix, unix, and C++ allocation functions
|
||||
*/
|
||||
@nogc pure @system nothrow void mi_free_aligned(void* p, size_t alignment);
|
||||
|
||||
/**
|
||||
* mi prefixed implementations of various posix, unix, and C++ allocation functions
|
||||
*/
|
||||
@nogc pure @system void* mi_new(size_t n);
|
||||
|
||||
/**
|
||||
* mi prefixed implementations of various posix, unix, and C++ allocation functions
|
||||
*/
|
||||
@nogc pure @system void* mi_new_aligned(size_t n, size_t alignment);
|
||||
|
||||
/**
|
||||
* mi prefixed implementations of various posix, unix, and C++ allocation functions
|
||||
*/
|
||||
@nogc pure @system nothrow void* mi_new_nothrow(size_t n);
|
||||
|
||||
/**
|
||||
* mi prefixed implementations of various posix, unix, and C++ allocation functions
|
||||
*/
|
||||
@nogc pure @system nothrow void* mi_new_aligned_nothrow(size_t n, size_t alignment);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user