summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/mrbconf.h6
-rw-r--r--src/pool.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/include/mrbconf.h b/include/mrbconf.h
index 3d1e1757d..20f49ec29 100644
--- a/include/mrbconf.h
+++ b/include/mrbconf.h
@@ -25,6 +25,12 @@
/* default size of khash table bucket */
//#define KHASH_DEFAULT_SIZE 32
+/* allocated memory address alignment */
+//#define POOL_ALIGNMENT 4
+
+/* page size of memory pool */
+//#define POOL_PAGE_SIZE 16000
+
/* -DDISABLE_XXXX to drop the feature */
#define DISABLE_REGEXP /* regular expression classes */
//#define DISABLE_SPRINTF /* Kernel.sprintf method */
diff --git a/src/pool.c b/src/pool.c
index 36c6fa8eb..daa6d0f69 100644
--- a/src/pool.c
+++ b/src/pool.c
@@ -9,7 +9,7 @@
#include <string.h>
/* configuration section */
-/* allcated memory address should be multiple of POOL_ALLOC_ALIGN */
+/* allocated memory address should be multiple of POOL_ALIGNMENT */
/* or undef it if alignment does not matter */
#ifndef POOL_ALIGNMENT
#define POOL_ALIGNMENT 4