Skip to content

Commit 8f1e5b7

Browse files
committed
adding malloc_good_size
1 parent 818e25a commit 8f1e5b7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/malloc_hook.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ EXTERNAL_API size_t malloc_usable_size(const void *ptr) {
8383
EXTERNAL_API size_t malloc_size(const void *ptr) {
8484
return iso_chunksz((void *) ptr);
8585
}
86+
87+
EXTERNAL_API size_t malloc_good_size(size_t size) {
88+
return ALIGN_SZ_UP(size);
89+
}
8690
#else
8791
EXTERNAL_API size_t malloc_usable_size(void *ptr) {
8892
return iso_chunksz(ptr);

0 commit comments

Comments
 (0)