Searched defs:malloc (Results 1 - 14 of 14) sorted by relevance

/openjdk7/hotspot/src/share/vm/shark/
H A DsharkCodeBuffer.hpp60 void* malloc(size_t size) const { function in class:SharkCodeBuffer
/openjdk7/jdk/src/windows/native/sun/windows/
H A Dalloc.h81 // The unsafe versions of malloc, calloc, and realloc should not be used
82 #define malloc Do_Not_Use_malloc_Use_safe_Malloc_Instead macro
H A Dawt_new.cpp33 #undef malloc macro
62 // use new handler for operator new and malloc
66 // malloc runs out of memory
70 // Called when malloc or operator new runs out of memory. We try to
73 // (1) to indicate that malloc or operator new should retry the
85 register void *ret_val = malloc(size);
212 VERIFY(malloc(INT_MAX) == 0); // should fail
/openjdk7/hotspot/src/share/vm/libadt/
H A Dport.hpp156 #define malloc(size) safe_malloc(__FILE__,__LINE__,size) macro
166 inline void *operator new( size_t size ) { return malloc(size); }
/openjdk7/jdk/src/share/native/com/sun/java/util/jar/pack/
H A Dbytes.cpp41 void bytes::malloc(size_t len_) { function in class:bytes
55 malloc(len_);
101 malloc(len_);
142 b.malloc(maxlen);
/openjdk7/jdk/src/share/native/sun/security/pkcs11/wrapper/
H A Dp11_util.c319 jpTemp = (jboolean*) malloc((*ckpLength) * sizeof(jboolean));
330 *ckpArray = (CK_BBOOL*) malloc ((*ckpLength) * sizeof(CK_BBOOL));
361 jpTemp = (jbyte*) malloc((*ckpLength) * sizeof(jbyte));
376 *ckpArray = (CK_BYTE_PTR) malloc ((*ckpLength) * sizeof(CK_BYTE));
408 jTemp = (jlong*) malloc((*ckpLength) * sizeof(jlong));
419 *ckpArray = (CK_ULONG_PTR) malloc (*ckpLength * sizeof(CK_ULONG));
450 jpTemp = (jchar*) malloc((*ckpLength) * sizeof(jchar));
461 *ckpArray = (CK_CHAR_PTR) malloc (*ckpLength * sizeof(CK_CHAR));
492 jTemp = (jchar*) malloc((*ckpLength) * sizeof(jchar));
503 *ckpArray = (CK_UTF8CHAR_PTR) malloc (*ckpLengt
1106 #undef malloc macro
[all...]
H A Dpkcs11wrapper.h450 /* Simple malloc/free dumper */
454 #define malloc(c) (p11malloc((c), __FILE__, __LINE__)) macro
/openjdk7/hotspot/src/share/vm/memory/
H A Dallocation.cpp158 tty->print_cr("Heap malloc " INTPTR_FORMAT " " SIZE_FORMAT " %s", p, size, name == NULL ? "" : name);
172 // MT-safe pool of chunks to reduce malloc/free thrashing
203 // No VM lock can be taken inside ThreadCritical lock, so os::malloc
209 if (p == NULL) p = os::malloc(bytes, mtChunk, CURRENT_PC);
321 void *p = os::malloc(bytes, mtChunk, CALLER_PC);
351 delete k; // Free chunk (was malloc'd)
438 void* p = os::malloc(size, flags|otArena, CALLER_PC);
442 return os::malloc(size, flags|otArena, CALLER_PC);
589 void* Arena::malloc(size_t size) { function in class:Arena
591 // use malloc, bu
[all...]
/openjdk7/jdk/src/share/back/
H A Dutil.h39 #undef malloc macro
40 #define malloc(p) Do not use this interface. macro
/openjdk7/hotspot/src/share/vm/runtime/
H A Dos.cpp80 julong os::num_mallocs = 0; // # of calls to malloc/realloc
439 char *dup_str = (char *)malloc(size + 1, flags);
563 void* os::malloc(size_t size, MEMFLAGS memflags, address caller) { function in class:os
574 u_char* ptr = (u_char*)::malloc(size + space_before + space_after);
589 tty->print_cr("os::malloc caught, " SIZE_FORMAT " bytes --> " PTR_FORMAT, size, memblock);
593 if (PrintMalloc && tty != NULL) tty->print_cr("os::malloc " SIZE_FORMAT " bytes --> " PTR_FORMAT, size, memblock);
617 return malloc(size, memflags, (caller == 0 ? CALLER_PC : caller));
627 void* ptr = malloc(size, memflags, caller == 0 ? CALLER_PC : caller);
629 // Copy to new memory if malloc didn't fail
659 "Thing freed should be malloc resul
[all...]
/openjdk7/hotspot/src/share/vm/opto/
H A DgraphKit.cpp3006 Node* malloc = _gvn.transform(new (C) ProjNode(allocx, TypeFunc::Memory)); local
3007 set_memory(malloc, rawidx);
3024 assert(init->in(InitializeNode::Memory) == malloc, "");
3025 MergeMemNode* minit_in = MergeMemNode::make(C, malloc);
/openjdk7/hotspot/src/os/bsd/vm/
H A Dos_bsd.cpp441 #define malloc(n) (char*)NEW_C_HEAP_ARRAY(char, (n), mtInternal) macro
484 dll_path = malloc(strlen(buf) + 1);
502 home_path = malloc(strlen(buf) + 1);
534 ld_library_path = (char *) malloc(system_ext_size);
537 ld_library_path = (char *) malloc(sizeof(REG_DIR) + sizeof("/lib/") +
553 ld_library_path = (char *) malloc(strlen(l) + 1 + strlen(t) + 1);
565 ld_library_path = (char *) malloc(strlen(v) + 1 + strlen(t) + 1);
582 ld_library_path = (char *) malloc(strlen(t) + 3);
600 char *buf = malloc(strlen(Arguments::get_java_home()) +
605 char *buf = malloc(strle
626 #undef malloc macro
[all...]
/openjdk7/hotspot/src/os/linux/vm/
H A Dos_linux.cpp375 #define malloc(n) (char*)NEW_C_HEAP_ARRAY(char, (n), mtInternal) macro
411 dll_path = malloc(strlen(buf) + 1);
427 home_path = malloc(strlen(buf) + 1);
458 ld_library_path = (char *) malloc(sizeof(REG_DIR) + sizeof("/lib/") +
471 ld_library_path = (char *) malloc(strlen(v) + 1 + strlen(t) + 1);
485 char *buf = malloc(strlen(Arguments::get_java_home()) +
495 buf = malloc(strlen(Arguments::get_java_home()) + sizeof(ENDORSED_DIR));
501 #undef malloc macro
643 char *str = (char *)malloc(n, mtInternal);
656 char *str = (char *)malloc(
[all...]
/openjdk7/hotspot/src/os/solaris/vm/
H A Dos_solaris.cpp771 #define malloc(n) (char*)NEW_C_HEAP_ARRAY(char, (n), mtInternal) macro
794 dll_path = malloc(strlen(buf) + 1);
810 home_path = malloc(strlen(buf) + 1);
852 info = (Dl_serinfo*)malloc(_info.dls_size);
893 common_path = malloc(bufsize);
905 library_path = malloc(bufsize);
959 char *buf = (char *) malloc(strlen(Arguments::get_java_home()) +
969 char * buf = malloc(strlen(Arguments::get_java_home()) + sizeof(ENDORSED_DIR));
975 #undef malloc macro
1620 // explicitly: malloc som
[all...]

Completed in 128 milliseconds