Lines Matching refs:sbrk
3318 " Additionally, even when size_t is unsigned, sbrk (which is by\n" +
3404 " MORECORE sbrk\n" +
3476 "/* Use the supplied emulation of sbrk */\n" +
3477 "#define MORECORE sbrk\n" +
3502 "static void *sbrk(long size);\n" +
3856 " MORECORE-related declarations. By default, rely on sbrk\n" +
3863 "extern Void_t* sbrk(ptrdiff_t);\n" +
3865 "extern Void_t* sbrk();\n" +
3878 "#define MORECORE sbrk\n" +
3895 " contiguous increasing addresses. This is true of unix sbrk. Even\n" +
3951 " sbrk fails, and mmap is used as a backup (which is done only if\n" +
3954 " address space, so sbrk cannot perform contiguous expansion, but\n" +
4429 " arguments to sbrk) if there is unused memory at the `high' end of\n" +
4479 " via sbrk and mmap), the maximum amount (which may be more than\n" +
4490 " (normally sbrk) outside of malloc.\n" +
4545 " Because trimming via sbrk can be slow on some systems, and can\n" +
4577 " sbrk, mmap, and munmap otherwise degrade performance, the default\n" +
4608 " retain whenever sbrk is called. It is used in two ways internally:\n" +
4610 " * When sbrk is called to extend the top of the arena to satisfy\n" +
4611 " a new malloc request, this much padding is added to the sbrk\n" +
4620 " The main reason for using padding is to avoid calling sbrk so\n" +
4623 " after trimming) will invoke sbrk, which needlessly wastes\n" +
4628 " systems where sbrk is relatively slow, it can pay to increase\n" +
4660 " memory that sbrk cannot.\n" +
6316 " address space, so sbrk cannot extend to give contiguous space, but\n" +
6340 " /* We do not need, and cannot use, another sbrk call to find end */\n" +
6344 " Record that we no longer have a contiguous sbrk region.\n" +
6369 " * If the first time through or noncontiguous, we need to call sbrk\n" +
6375 " * If there was an intervening foreign sbrk, we need to adjust sbrk\n" +
6486 " /* Adjust top based on results of second sbrk */\n" +
6494 " gap due to foreign sbrk or a non-contiguous region. Insert a\n" +
6575 " to the system (via negative arguments to sbrk) if there is unused\n" +
6593 " char* current_brk; /* address returned by pre-check sbrk call */\n" +
6594 " char* new_brk; /* address returned by post-check sbrk call */\n" +
6607 " This avoids problems if there were foreign sbrk calls.\n" +
8135 " argument to sbrk/MORECORE. If size_t is unsigned, then it cannot\n" +
8136 " actually be size_t, because sbrk supports negative args, so it is\n" +
8145 " holes in address spaces -- in this case sbrk cannot contiguously\n" +
8157 " If you are using this malloc with something other than sbrk (or its\n" +
8231 " Emulation of sbrk for win32.\n" +
8327 "/* sbrk for windows */\n" +
8328 "static void *sbrk (long size) {\n" +
8334 " printf (\"sbrk %d\\n\", size);\n" +