summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-31 12:36:50 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-31 12:36:50 +0000
commita42cc41ba1abacd37e1922965fae641e537a6b5f (patch)
tree897311e051fbe623a45a7cdac218c27ef285e54b /gc.c
parent487cc8b5cebfcdfe218058ff9de31d2231e1d5cb (diff)
* configure.in (HEAP_ALIGN_LOG): HEAP_ALIGN_LOG should be page
size in OpenBSD. [ruby-core:42158][Bug #5901] * gc.c : avoid to redefine. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index f52b5fc348..2c49f96363 100644
--- a/gc.c
+++ b/gc.c
@@ -536,8 +536,10 @@ rb_objspace_free(rb_objspace_t *objspace)
}
#endif
-/* tiny heap size: 16KB */
+#ifndef HEAP_ALIGN_LOG
+/* default tiny heap size: 16KB */
#define HEAP_ALIGN_LOG 14
+#endif
#define HEAP_ALIGN (1UL << HEAP_ALIGN_LOG)
#define HEAP_ALIGN_MASK (~(~0UL << HEAP_ALIGN_LOG))
#define REQUIRED_SIZE_BY_MALLOC (sizeof(size_t) * 5)