1
0
mirror of https://github.com/ErnyTech/neomimalloc synced 2024-06-18 10:50:01 +02:00

Compare commits

...

5 Commits

Author SHA1 Message Date
Ernesto Castellotti
330af5b9ca
libmimalloc-sys: Updated to v1.0.6 2019-08-17 10:39:46 +02:00
Ernesto Castellotti
3e35f5593f
c bindings: Update header to v1.0.6 2019-08-17 10:38:29 +02:00
Ernesto Castellotti
a3ef3650c6
libmimalloc-sys: Updated to v1.0.5 2019-07-17 16:17:15 +02:00
Ernesto Castellotti
09ae5e9879
c bindings: Update header to v1.0.5 2019-07-17 16:16:36 +02:00
Ernesto Castellotti
a455e21c9b Remove old submodule path 2019-07-11 17:37:19 +02:00
3 changed files with 35 additions and 11 deletions

View File

@ -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

View File

@ -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);
}