Searched refs:malloc (Results 126 - 150 of 279) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/native/java/lang/
H A DClassLoader.c52 otherwise malloc new memory. Returns null IFF malloc failed. */
61 utfStr = malloc(len + 1);
111 /* Work around 4153825. malloc crashes on Solaris when passed a
119 body = (jbyte *)malloc(length);
/openjdk7/jdk/src/share/native/sun/security/pkcs11/wrapper/
H A Dp11_objmgmt.c258 ckpAttributes[i].pValue = (void *) malloc(ckBufferLength);
391 ckpObjectHandleArray = (CK_OBJECT_HANDLE_PTR) malloc(sizeof(CK_OBJECT_HANDLE) * ckMaxObjectLength);
H A Dp11_mutex.c93 ckpInitArgs = (CK_C_INITIALIZE_ARGS_PTR) malloc(sizeof(CK_C_INITIALIZE_ARGS));
141 ckpGlobalInitArgs = (CK_C_INITIALIZE_ARGS_PTR) malloc(sizeof(CK_C_INITIALIZE_ARGS));
/openjdk7/jdk/src/share/native/sun/tracing/dtrace/
H A DJVM.c270 /* Work around 4153825. malloc crashes on Solaris when passed a
277 body = (jbyte *)malloc(length);
293 utfName = malloc(len + 1);
/openjdk7/jdk/src/macosx/native/sun/java2d/opengl/
H A DCGLGraphicsConfig.m374 CGLCtxInfo *ctxinfo = (CGLCtxInfo *)malloc(sizeof(CGLCtxInfo));
385 OGLContext *oglc = (OGLContext *)malloc(sizeof(OGLContext));
398 CGLGraphicsConfigInfo *cglinfo = (CGLGraphicsConfigInfo *)malloc(sizeof(CGLGraphicsConfigInfo));
/openjdk7/jdk/src/share/native/sun/awt/giflib/
H A Ddgif_lib.c123 GifFile = (GifFileType *)malloc(sizeof(GifFileType));
131 Private = (GifFilePrivateType *)malloc(sizeof(GifFilePrivateType));
198 GifFile = (GifFileType *)malloc(sizeof(GifFileType));
206 Private = (GifFilePrivateType *)malloc(sizeof(GifFilePrivateType));
412 (SavedImage *) malloc(sizeof(SavedImage))) == NULL) {
1043 sp->RasterBits = (unsigned char *)malloc(ImageSize *
/openjdk7/jdk/src/macosx/native/sun/font/
H A DCGGlyphImages.m354 canvas->image = malloc(sizeof(vImage_Buffer));
483 GlyphInfo *glyphInfo = (GlyphInfo *)malloc(sizeof(GlyphInfo));
484 void *image = (void *)malloc(height * width * pixelSize);
487 GlyphInfo *glyphInfo = (GlyphInfo *)malloc(sizeof(GlyphInfo) +
654 * to determine if we go with the global canvas, or malloc one on the spot.
702 * Creates a GlyphInfo struct with a malloc that also encapsulates the
812 // just do one malloc, and carve it up for all the buffers
813 void *buffer = malloc(sizeof(CGRect) * sizeof(CGSize) *
/openjdk7/jdk/src/solaris/native/sun/awt/
H A DmultiVis.c428 ximage->data = malloc(height*bytes_per_line);
430 ximage->data = malloc(height*bytes_per_line*depth);
814 malloc( sizeof( image_region_type)))) {
978 if ((new_src = (image_win_type *) malloc( sizeof( image_win_type))) == NULL)
1182 pIVis = *pImageVisuals = (XVisualInfo **) malloc(sizeof(XVisualInfo *));
H A Dmulti_font.c124 newGRef = (struct gRefStruct *)malloc((size_t)sizeof(struct gRefStruct));
163 newGRef = (struct gRefStruct *)malloc((size_t)sizeof(struct gRefStruct));
635 realxlfd = malloc(strlen(xfontset) + 50);
/openjdk7/jdk/src/windows/native/java/io/
H A DWinNTFileSystem_md.c111 result = (WCHAR*)malloc(MAX_PATH * sizeof(WCHAR));
140 WCHAR *tmp = (WCHAR*)malloc(resultLen * sizeof(WCHAR));
252 WCHAR *cp = (WCHAR*)malloc(len * sizeof(WCHAR));
282 WCHAR *cp = (WCHAR*)malloc(len * sizeof(WCHAR));
623 search_path = (WCHAR*)malloc(2*wcslen(pathbuf) + 6);
H A Dcanonicalize_md.c420 if ((path = (WCHAR*)malloc(size * sizeof(WCHAR))) == NULL)
588 WCHAR* pathbuf = (WCHAR*)malloc((pathlen + 10) * sizeof (WCHAR));
/openjdk7/jdk/src/windows/native/java/net/
H A DNetworkInterface_winXP.c78 * Buffer is malloc'd and must be freed (unless error returned)
84 adapterInfo = (IP_ADAPTER_ADDRESSES *)malloc (bufsize);
114 * Buffer is malloc'd and must be freed (unless error returned)
120 adapterInfo = (IP_ADAPTER_ADDRESSES *)malloc (bufsize);
150 ret = (IP_ADAPTER_ADDRESSES *) malloc(sizeof(IP_ADAPTER_ADDRESSES));
281 nif->name = malloc (strlen(newname)+1);
282 nif->displayName = malloc (wcslen(ptr->FriendlyName)*2+2);
H A DDualStackPlainDatagramSocketImpl.c266 fullPacket = (char *)malloc(packetBufferLen);
428 fullPacket = (char *)malloc(length);
/openjdk7/hotspot/agent/src/os/linux/
H A Dsymtab.c210 char *debug_pathname = malloc(strlen(debug_filename)
282 filename = malloc(strlen (debug_file_directory) + (sizeof "/.build-id/" - 1) + 1
407 symtab->strs = (char *)malloc(size);
/openjdk7/jdk/src/solaris/native/java/net/
H A DInet4AddressImpl.c191 = (struct addrinfo*) malloc(sizeof(struct addrinfo));
460 if ((tmp = (char*)malloc(BIG_HENT_BUF_SIZE))) {
558 if ((tmp = (char*)malloc(BIG_HENT_BUF_SIZE))) {
/openjdk7/jdk/src/windows/native/sun/awt/splashscreen/
H A Dsplashscreen_sys.c71 buf = (WCHAR*) SAFE_SIZE_ARRAY_ALLOC(malloc, outChars, sizeof(WCHAR));
108 pRgnData = (RGNDATA *) SAFE_SIZE_STRUCT_ALLOC(malloc, sizeof(RGNDATAHEADER),
178 LOGPALETTE *pLogPal = (LOGPALETTE *) SAFE_SIZE_STRUCT_ALLOC(malloc,
/openjdk7/jdk/src/share/demo/jvmti/hprof/
H A Ddebug_malloc.c43 * Set of malloc/realloc/calloc/strdup/free replacement macros that
45 * and also attempt to detect invalid uses of the malloc heap through
52 * malloc(size)
66 * is that any malloc() from debug_malloc.h must be
70 * malloc, realloc, calloc, strdup, and free with the functions below.
88 * at the tail of the malloc space, which is allocated large enough
136 * malloc/free get->| clobber Word | ---> contains -size requested by user
170 /* Maximum name of __FILE_ stored in each malloc'd area */
173 /* Macro to convert a user pointer to the malloc pointer */
186 /* Macro to calculate the needed malloc byte
[all...]
/openjdk7/jdk/src/share/native/sun/font/
H A DfreetypeScaler.c290 scalerInfo->fontData = (unsigned char*) malloc(filesize);
311 scalerInfo->fontData = (unsigned char*) malloc(FILEDATACACHESIZE);
780 glyphInfo = (GlyphInfo*) malloc(sizeof(GlyphInfo) + imageSize);
1071 malloc(gpdata->lenTypes*sizeof(jbyte));
1073 malloc(gpdata->lenCoords*sizeof(jfloat));
1356 glyphs = (jint*) malloc(numGlyphs*sizeof(jint));
1362 // 3. malloc failed.
/openjdk7/jdk/src/solaris/native/com/sun/media/sound/
H A DPLATFORM_API_SolarisOS_PCM.c91 sr = (am_sample_rates_t*) malloc(AUDIO_MIXER_SAMP_RATES_STRUCT_SIZE(MAX_SAMPLE_RATES));
186 info = (SolPcmInfo*) malloc(sizeof(SolPcmInfo));
/openjdk7/jdk/src/windows/native/sun/java2d/opengl/
H A DWGLSurfaceData.c66 WGLSDOps *wglsdo = (WGLSDOps *)malloc(sizeof(WGLSDOps));
607 pDst = SAFE_SIZE_ARRAY_ALLOC(malloc, height, scanStride);
/openjdk7/jdk/src/share/native/sun/awt/libpng/
H A Dpngmem.c56 /* Allocate memory for a png_struct. The malloc and memset can be replaced
65 /* Alternate version of png_create_struct, for use with user-defined malloc. */
402 /* Allocate memory for a png_struct or a png_info. The malloc and
412 /* Allocate memory for a png_struct or a png_info. The malloc and
453 struct_ptr = (png_voidp)malloc(size);
590 ret = malloc((size_t)size);
/openjdk7/jdk/src/solaris/demo/jni/Poller/
H A DPoller.c89 #include <malloc.h>
304 ioeh->pfd = malloc(maximum_fds * sizeof(pollfd_t));
307 return MEMORY_EXCEPTION("CreatePoller - malloc failure");
/openjdk7/hotspot/agent/src/os/bsd/
H A Dsymtab.c149 symtab->strs = malloc(size);
/openjdk7/hotspot/src/share/vm/prims/
H A Dwhitebox.cpp88 addr = (jlong)(uintptr_t)os::malloc(size, mtTest);
/openjdk7/hotspot/src/share/vm/services/
H A DmemPtrArray.hpp294 return os::malloc(elementSize * items, mtNMT);

Completed in 159 milliseconds

1234567891011>>