File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ pub const mi_option_show_stats: mi_option_t = 1;
488488pub const mi_option_verbose: mi_option_t = 2 ;
489489
490490/// ### The following options are experimental
491-
491+ ///
492492/// Option (experimental) Use large OS pages (2MiB in size) if possible.
493493///
494494/// Use large OS pages (2MiB) when available; for some workloads this can
@@ -546,7 +546,7 @@ pub const mi_option_max_warnings: mi_option_t = 20;
546546pub const mi_option_max_segment_reclaim: mi_option_t = 21 ;
547547
548548/// Last option.
549- pub const _mi_option_last: mi_option_t = 29 ;
549+ pub const _mi_option_last: mi_option_t = 36 ;
550550
551551extern "C" {
552552 // Note: mi_option_{enable,disable} aren't exposed because they're redundant
@@ -657,6 +657,8 @@ pub struct mi_heap_area_t {
657657 pub block_size : usize ,
658658 /// Size in bytes of a full block including padding and metadata.
659659 pub full_block_size : usize ,
660+ /// Heap tag associated with this area (see \a mi_heap_new_ex)
661+ pub heap_tag : c_int ,
660662}
661663
662664/// Visitor function passed to [`mi_heap_visit_blocks`]
@@ -1012,6 +1014,7 @@ extern "C" {
10121014#[ cfg( test) ]
10131015mod tests {
10141016 use super :: * ;
1017+ use crate :: mi_malloc;
10151018
10161019 #[ test]
10171020 fn it_calculates_usable_size ( ) {
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ description = "Bindings test for libmimalloc-sys"
77license = " MIT"
88publish = false
99
10+ [features ]
11+ secure = [" libmimalloc-sys2/secure" ]
12+
1013[dependencies ]
1114libmimalloc-sys2 = { path = " .." , features = [" extended" ] }
1215libc = " 0.2"
You can’t perform that action at this time.
0 commit comments