Mercurial > emacs
comparison src/ralloc.c @ 31509:6bc82db7d305
(r_alloc_init): Conditionalize on SYSTEM_MALLOC, not REL_ALLOC_MMAP.
author | Dave Love <fx@gnu.org> |
---|---|
date | Fri, 08 Sep 2000 16:03:04 +0000 |
parents | 33510affffb3 |
children | 6e606fa28569 |
comparison
equal
deleted
inserted
replaced
31508:5416fcb729d7 | 31509:6bc82db7d305 |
---|---|
1678 r_alloc_initialized = 1; | 1678 r_alloc_initialized = 1; |
1679 page_size = PAGE; | 1679 page_size = PAGE; |
1680 #ifndef SYSTEM_MALLOC | 1680 #ifndef SYSTEM_MALLOC |
1681 real_morecore = __morecore; | 1681 real_morecore = __morecore; |
1682 __morecore = r_alloc_sbrk; | 1682 __morecore = r_alloc_sbrk; |
1683 #endif | 1683 |
1684 | |
1685 #ifndef REL_ALLOC_MMAP | |
1686 first_heap = last_heap = &heap_base; | 1684 first_heap = last_heap = &heap_base; |
1687 first_heap->next = first_heap->prev = NIL_HEAP; | 1685 first_heap->next = first_heap->prev = NIL_HEAP; |
1688 first_heap->start = first_heap->bloc_start | 1686 first_heap->start = first_heap->bloc_start |
1689 = virtual_break_value = break_value = (*real_morecore) (0); | 1687 = virtual_break_value = break_value = (*real_morecore) (0); |
1690 if (break_value == NIL) | 1688 if (break_value == NIL) |
1701 so that we move all the relocatable blocks much less often. */ | 1699 so that we move all the relocatable blocks much less often. */ |
1702 __malloc_extra_blocks = 64; | 1700 __malloc_extra_blocks = 64; |
1703 #endif | 1701 #endif |
1704 #endif | 1702 #endif |
1705 | 1703 |
1706 #ifndef REL_ALLOC_MMAP | 1704 #ifndef SYSTEM_MALLOC |
1707 first_heap->end = (POINTER) ROUNDUP (first_heap->start); | 1705 first_heap->end = (POINTER) ROUNDUP (first_heap->start); |
1708 | 1706 |
1709 /* The extra call to real_morecore guarantees that the end of the | 1707 /* The extra call to real_morecore guarantees that the end of the |
1710 address space is a multiple of page_size, even if page_size is | 1708 address space is a multiple of page_size, even if page_size is |
1711 not really the page size of the system running the binary in | 1709 not really the page size of the system running the binary in |