Project

General

Profile

Bug #5901 » smaller-heap-3.diff

patch by Narihiro Nakamura, but migrated to svn r34399 - kernigh (George Koehler), 01/31/2012 06:27 AM

View differences:

configure.in (working copy)
CFLAGS="$save_CFLAGS"])
AC_DEFINE_UNQUOTED(GC_MARK_STACKFRAME_WORD, $rb_cv_gc_mark_stackframe_word)
AS_CASE(["$target_os"],
[openbsd*], [
AC_DEFINE_UNQUOTED(HEAP_ALIGN_LOG, 12)
])
dnl Checks for library functions.
AC_TYPE_GETGROUPS
AC_TYPE_SIGNAL
gc.c (working copy)
}
#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)
(3-3/3)