equal
deleted
inserted
replaced
662 static void* realloc (void *memblock, size_t size, MEMFLAGS flag); |
662 static void* realloc (void *memblock, size_t size, MEMFLAGS flag); |
663 |
663 |
664 static void free (void *memblock, MEMFLAGS flags = mtNone); |
664 static void free (void *memblock, MEMFLAGS flags = mtNone); |
665 static bool check_heap(bool force = false); // verify C heap integrity |
665 static bool check_heap(bool force = false); // verify C heap integrity |
666 static char* strdup(const char *, MEMFLAGS flags = mtInternal); // Like strdup |
666 static char* strdup(const char *, MEMFLAGS flags = mtInternal); // Like strdup |
|
667 // Like strdup, but exit VM when strdup() returns NULL |
|
668 static char* strdup_check_oom(const char*, MEMFLAGS flags = mtInternal); |
667 |
669 |
668 #ifndef PRODUCT |
670 #ifndef PRODUCT |
669 static julong num_mallocs; // # of calls to malloc/realloc |
671 static julong num_mallocs; // # of calls to malloc/realloc |
670 static julong alloc_bytes; // # of bytes allocated |
672 static julong alloc_bytes; // # of bytes allocated |
671 static julong num_frees; // # of calls to free |
673 static julong num_frees; // # of calls to free |