8000 Remove HEAP_ALIGN_LOG setting in configure.ac for OpenBSD/MirOS · github/ruby@0b899a2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b899a2

Browse files
committed
Remove HEAP_ALIGN_LOG setting in configure.ac for OpenBSD/MirOS
The ruby setting was renamed to HEAP_PAGE_ALIGN_LOG, but the configure.in (now configure.ac) file was not updated, so the setting had no effect. The configure setting is unnecessary after OpenBSD 5.2 and MirOS has been discontinued (with the last release being over 10 years ago), so it is better to just remove the related configure setting. Fix [Bug ruby#13438] From: Jeremy Evans <code@jeremyevans.net> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 493955c commit 0b899a2

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

configure.ac

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,34 +1641,6 @@ AS_IF([test $rb_cv_stack_end_address != no], [
16411641
AC_DEFINE_UNQUOTED(STACK_END_ADDRESS, $rb_cv_stack_end_address)
16421642
])
16431643

1644-
# posix_memalign(memptr, alignment, size) implemented for OpenBSD 4.8 doesn't work if alignment > MALLOC_PAGESIZE.
1645-
# [ruby-core:42158] https://bugs.ruby-lang.org/issues/5901
1646-
# OpenBSD 5.2 fixed the problem. (src/lib/libc/stdlib/malloc.c:1.142)
1647-
# MirOS #10semel has the problem but fixed in the repository. (src/lib/libc/stdlib/malloc.c:1.9)
1648-
AS_CASE(["$target_os"],
1649-
[openbsd*|mirbsd*], [
1650-
AC_CACHE_CHECK(for heap align log on openbsd, rb_cv_page_size_log,
1651-
[rb_cv_page_size_log=no
1652-
for page_log in 12 13; do
1653-
AC_TRY_RUN([
1654-
#include <math.h>
1655-
#include <unistd.h>
1656-
1657-
int
1658-
main() {
1659-
if ((int)log2((double)sysconf(_SC_PAGESIZE)) != $page_log) return 1;
1660-
return 0;
1661-
}
1662-
],
1663-
rb_cv_page_size_log="$page_log"; break)
1664-
done])
1665-
AS_IF([test $rb_cv_page_size_log != no], [
1666-
AC_DEFINE_UNQUOTED(HEAP_ALIGN_LOG, $rb_cv_page_size_log)
1667-
], [
1668-
AC_DEFINE_UNQUOTED(HEAP_ALIGN_LOG, 12)
1669-
])
1670-
])
1671-
16721644
dnl Checks for library functions.
16731645
AC_TYPE_GETGROUPS
16741646
AC_TYPE_SIGNAL

gc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,10 +649,8 @@ typedef struct rb_objspace {
649649
} rb_objspace_t;
650650

651651

652-
#ifndef HEAP_PAGE_ALIGN_LOG
653652
/* default tiny heap size: 16KB */
654653
#define HEAP_PAGE_ALIGN_LOG 14
655-
#endif
656654
#define CEILDIV(i, mod) (((i) + (mod) - 1)/(mod))
657655
enum {
658656
HEAP_PAGE_ALIGN = (1UL << HEAP_PAGE_ALIGN_LOG),

0 commit comments

Comments
 (0)
0