mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
Update.
2001-02-14 Wolfram Gloger <wg@malloc.de> * malloc/malloc.c (new_heap): When allocating large chunk aligned to HEAP_MAX_SIZE, prefer one with lower address, to avoid `holes' between the heaps.
This commit is contained in:
parent
cd53c157cf
commit
8a216c1bd8
@ -1,3 +1,9 @@
|
|||||||
|
2001-02-14 Wolfram Gloger <wg@malloc.de>
|
||||||
|
|
||||||
|
* malloc/malloc.c (new_heap): When allocating large chunk aligned
|
||||||
|
to HEAP_MAX_SIZE, prefer one with lower address, to avoid `holes'
|
||||||
|
between the heaps.
|
||||||
|
|
||||||
2001-02-14 Ulrich Drepper <drepper@redhat.com>
|
2001-02-14 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* math/libm-test.inc (j0_test): Check whether sincos is available.
|
* math/libm-test.inc (j0_test): Check whether sincos is available.
|
||||||
|
@ -2026,7 +2026,7 @@ new_heap(size) size_t size;
|
|||||||
anyway). */
|
anyway). */
|
||||||
p1 = (char *)MMAP(0, HEAP_MAX_SIZE<<1, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE);
|
p1 = (char *)MMAP(0, HEAP_MAX_SIZE<<1, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE);
|
||||||
if(p1 != MAP_FAILED) {
|
if(p1 != MAP_FAILED) {
|
||||||
p2 = (char *)(((unsigned long)p1 + HEAP_MAX_SIZE) & ~(HEAP_MAX_SIZE-1));
|
p2 = (char *)(((unsigned long)p1 + (HEAP_MAX_SIZE-1)) & ~(HEAP_MAX_SIZE-1));
|
||||||
ul = p2 - p1;
|
ul = p2 - p1;
|
||||||
munmap(p1, ul);
|
munmap(p1, ul);
|
||||||
munmap(p2 + HEAP_MAX_SIZE, HEAP_MAX_SIZE - ul);
|
munmap(p2 + HEAP_MAX_SIZE, HEAP_MAX_SIZE - ul);
|
||||||
|
@ -2857,6 +2857,7 @@ j0_test (void)
|
|||||||
static void
|
static void
|
||||||
j1_test (void)
|
j1_test (void)
|
||||||
{
|
{
|
||||||
|
FLOAT s, c;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
FUNC (sincos) (0, &s, &c);
|
FUNC (sincos) (0, &s, &c);
|
||||||
if (errno == ENOSYS)
|
if (errno == ENOSYS)
|
||||||
@ -2890,6 +2891,7 @@ j1_test (void)
|
|||||||
static void
|
static void
|
||||||
jn_test (void)
|
jn_test (void)
|
||||||
{
|
{
|
||||||
|
FLOAT s, c;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
FUNC (sincos) (0, &s, &c);
|
FUNC (sincos) (0, &s, &c);
|
||||||
if (errno == ENOSYS)
|
if (errno == ENOSYS)
|
||||||
@ -4014,6 +4016,7 @@ trunc_test (void)
|
|||||||
static void
|
static void
|
||||||
y0_test (void)
|
y0_test (void)
|
||||||
{
|
{
|
||||||
|
FLOAT s, c;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
FUNC (sincos) (0, &s, &c);
|
FUNC (sincos) (0, &s, &c);
|
||||||
if (errno == ENOSYS)
|
if (errno == ENOSYS)
|
||||||
@ -4047,6 +4050,7 @@ y0_test (void)
|
|||||||
static void
|
static void
|
||||||
y1_test (void)
|
y1_test (void)
|
||||||
{
|
{
|
||||||
|
FLOAT s, c;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
FUNC (sincos) (0, &s, &c);
|
FUNC (sincos) (0, &s, &c);
|
||||||
if (errno == ENOSYS)
|
if (errno == ENOSYS)
|
||||||
@ -4079,6 +4083,7 @@ y1_test (void)
|
|||||||
static void
|
static void
|
||||||
yn_test (void)
|
yn_test (void)
|
||||||
{
|
{
|
||||||
|
FLOAT s, c;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
FUNC (sincos) (0, &s, &c);
|
FUNC (sincos) (0, &s, &c);
|
||||||
if (errno == ENOSYS)
|
if (errno == ENOSYS)
|
||||||
|
Loading…
Reference in New Issue
Block a user