Lines Matching defs:malloc
79 julong os::num_mallocs = 0; // # of calls to malloc/realloc
523 char *dup_str = (char *)malloc(size + 1, flags);
555 // This function supports testing of the malloc out of memory
570 void* os::malloc(size_t size, MEMFLAGS flags) {
571 return os::malloc(size, flags, CALLER_PC);
574 void* os::malloc(size_t size, MEMFLAGS memflags, const NativeCallStack& stack) {
580 // since os::malloc can be called when the libjvm.{dll,so} is
589 "Can't malloc with crash protection from WatcherThread");
619 ptr = (u_char*)::malloc(alloc_size);
630 tty->print_cr("os::malloc caught, " SIZE_FORMAT " bytes --> " PTR_FORMAT, size, p2i(ptr));
635 tty->print_cr("os::malloc " SIZE_FORMAT " bytes --> " PTR_FORMAT, size, p2i(ptr));
664 return os::malloc(size, memflags, stack);
677 void* ptr = os::malloc(size, memflags, stack);
681 // Copy to new memory if malloc didn't fail