Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:bytes

3236 "  * For large (>= 512 bytes) requests, it is a pure best-fit allocator,\n" +
3238 " * For small (<= 64 bytes by default) requests, it is a caching\n" +
3277 " Supported pointer representation: 4 or 8 bytes\n" +
3278 " Supported size_t representation: 4 or 8 bytes\n" +
3279 " Note that size_t is allowed to be 4 bytes even if pointers are 8.\n" +
3287 " Minimum overhead per allocated chunk: 4 or 8 bytes\n" +
3291 " Minimum allocated size: 4-byte ptrs: 16 bytes (including 4 overhead)\n" +
3292 " 8-byte ptrs: 24/32 bytes (including, 4/8 overhead)\n" +
3295 " ptrs but 4 byte size) or 24 (for 8/8) additional bytes are\n" +
3296 " needed; 4 (8) for a trailing size field and 8 (16) bytes for\n" +
3298 " 16/24/32 bytes.\n" +
3300 " Even a request for zero bytes (i.e., malloc(0)) returns a\n" +
3303 " The maximum overhead wastage (i.e., number of extra bytes\n" +
3307 " sizeof(size_t) bytes plus the remainder from a system page (the\n" +
3308 " minimal mmap unit); typically 4096 or 8192 bytes.\n" +
3668 " realloc with zero bytes should be the same as a call to free.\n" +
3804 " (of <= 36 bytes) are manually unrolled in realloc and calloc.\n" +
4109 " Returns a pointer to a newly allocated chunk of at least n bytes, or null\n" +
4114 " size is 16 bytes on most 32bit systems, and 24 or 32 bytes on 64bit\n" +
4146 " Returns a pointer to n_elements * element_size bytes, with all locations\n" +
4158 " as does chunk p up to the minimum of (n, p's size) bytes, or null\n" +
4170 " if n is for fewer bytes than already held by p, the newly unused\n" +
4190 " Returns a pointer to a newly allocated chunk of n bytes, aligned\n" +
4251 (" arena: current total non-mmapped bytes allocated from system\n" +
4256 " hblkhd: total bytes held in mmapped regions\n" +
4259 " fsmblks: total bytes held in fastbin blocks\n" +
4262 " keepcost: the maximum number of bytes that could ideally be released\n" +
4458 " Returns the number of bytes you can actually use in\n" +
4461 " You can use this many bytes without worrying about\n" +
4481 " number of bytes allocated via malloc (or realloc, etc) but not yet\n" +
4482 " freed. Note that this is the number of bytes allocated, not the\n" +
4795 "Void_t* public_mALLOc(size_t bytes) {\n" +
4800 " m = mALLOc(bytes);\n" +
4866 "Void_t* public_rEALLOc(Void_t* m, size_t bytes) {\n" +
4870 " m = rEALLOc(m, bytes);\n" +
4876 "Void_t* public_mEMALIGn(size_t alignment, size_t bytes) {\n" +
4881 " m = mEMALIGn(alignment, bytes);\n" +
4887 "Void_t* public_vALLOc(size_t bytes) {\n" +
4892 " m = vALLOc(bytes);\n" +
4898 "Void_t* public_pVALLOc(size_t bytes) {\n" +
4903 " m = pVALLOc(bytes);\n" +
5123 " INTERNAL_SIZE_T size; /* Size in bytes, including overhead. */\n" +
5152 " | Size of chunk, in bytes |P|\n" +
5156 " . (malloc_usable_space() bytes) .\n" +
5176 " `head:' | Size of chunk, in bytes |P|\n" +
5182 " | Unused space (may be 0 bytes long) .\n" +
5186 " `foot:' | Size of chunk, in bytes |\n" +
5211 " MINSIZE bytes long, it is replenished.\n" +
5251 "/* pad request bytes into a usable size -- internal version */\n" +
5352 " requirements. The result is a little over 1K bytes (for 4byte\n" +
5415 " Bins for sizes < 512 bytes contain chunks of all the same size, spaced\n" +
5416 " 8 bytes apart. Larger bins are approximately logarithmically spaced:\n" +
5496 " 2560 - leaves bins <= 64 bytes wide unsorted\n" +
5497 " 12288 - leaves bins <= 512 bytes wide unsorted\n" +
5498 " 65536 - leaves bins <= 4096 bytes wide unsorted\n" +
5499 " 262144 - leaves bins <= 32768 bytes wide unsorted\n" +
6140 " space to service request for nb bytes, thus requiring that av->top\n" +
6160 " INTERNAL_SIZE_T front_misalign; /* unusable bytes at front of new space */\n" +
6421 " Skip over some bytes to arrive at an aligned position.\n" +
6422 " We don't need to specially mark these wasted front bytes.\n" +
6649 "Void_t* mALLOc(size_t bytes)\n" +
6651 " Void_t* mALLOc(bytes) size_t bytes;\n" +
6676 " Convert request size to internal form by adding SIZE_SZ bytes\n" +
6684 " checked_request2size(bytes, nb);\n" +
7277 "Void_t* rEALLOc(Void_t* oldmem, size_t bytes)\n" +
7279 "Void_t* rEALLOc(oldmem, bytes) Void_t* oldmem; size_t bytes;\n" +
7301 " CHUNK_SIZE_T copysize; /* bytes to copy */\n" +
7308 " if (bytes == 0) {\n" +
7316 " if (oldmem == 0) return mALLOc(bytes);\n" +
7318 " checked_request2size(bytes, nb);\n" +
7373 " Unroll copy of <= 36 bytes (72 if 8byte sizes)\n" +
7505 "Void_t* mEMALIGn(size_t alignment, size_t bytes)\n" +
7507 "Void_t* mEMALIGn(alignment, bytes) size_t alignment; size_t bytes;\n" +
7523 " if (alignment <= MALLOC_ALIGNMENT) return mALLOc(bytes);\n" +
7536 " checked_request2size(bytes, nb);\n" +
7629 " Unroll clear of <= 36 bytes (72 if 8byte sizes)\n" +
7743 " INTERNAL_SIZE_T remainder_size; /* remaining bytes while splitting */\n" +
7781 " /* subtract out alignment bytes from total to minimize overallocation */\n" +
7854 "Void_t* vALLOc(size_t bytes)\n" +
7856 "Void_t* vALLOc(bytes) size_t bytes;\n" +
7862 " return mEMALIGn(av->pagesize, bytes);\n" +
7871 "Void_t* pVALLOc(size_t bytes)\n" +
7873 "Void_t* pVALLOc(bytes) size_t bytes;\n" +
7882 bytes + pagesz - 1) & ~(pagesz - 1));\n" +
8002 " fprintf(stderr, \"free bytes = %10lu\\n\",\n" +
8004 " fprintf(stderr, \"reserved bytes = %10lu\\n\",\n" +
8006 " fprintf(stderr, \"committed bytes = %10lu\\n\",\n" +
8012 " fprintf(stderr, \"max system bytes = %10lu\\n\",\n" +
8014 " fprintf(stderr, \"system bytes = %10lu\\n\",\n" +
8016 " fprintf(stderr, \"in use bytes = %10lu\\n\",\n" +