summaryrefslogtreecommitdiffstats
path: root/src/svm/ssvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/svm/ssvm.c')
-rw-r--r--src/svm/ssvm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/svm/ssvm.c b/src/svm/ssvm.c
index feba7f93496..a16965e5e67 100644
--- a/src/svm/ssvm.c
+++ b/src/svm/ssvm.c
@@ -377,6 +377,11 @@ ssvm_master_init_private (ssvm_private_t * ssvm)
}
mspace_disable_expand (heap);
+
+ /* Find actual size because mspace size is rounded up by dlmalloc */
+ struct dlmallinfo dlminfo;
+ dlminfo = mspace_mallinfo (heap);
+ rnd_size = dlminfo.fordblks;
#endif
ssvm->ssvm_size = rnd_size;