Searched refs:malloc (Results 101 - 125 of 279) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/windows/native/com/sun/media/sound/
H A DPLATFORM_API_WinOS_Ports.c308 controls->pamxctrl = (MIXERCONTROL*) malloc(sizeof(MIXERCONTROL) * line->cControls);
392 info = (PortInfo*) malloc(sizeof(PortInfo));
403 info->dstLines = (MIXERLINE*) malloc(dstCount * sizeof(MIXERLINE));
427 info->srcLines = (MIXERLINE*) malloc(info->srcLineCount * sizeof(MIXERLINE));
443 info->ports = (LPMIXERLINE*) malloc((info->targetPortCount + info->sourcePortCount) * sizeof(LPMIXERLINE));
659 listTextDetails = (MIXERCONTROLDETAILS_LISTTEXT*) malloc(listTextDetailCount * sizeof(MIXERCONTROLDETAILS_LISTTEXT));
911 info->controlIDs = (PortControlID*) malloc(sizeof(PortControlID) * maxCount);
918 info->muxData = (MIXERCONTROLDETAILS_BOOLEAN*) malloc(sizeof(MIXERCONTROLDETAILS_BOOLEAN) * muxCount);
928 controls = (void*) malloc(info->maxControlCount * sizeof(void*));
H A DPLATFORM_API_WinOS_MidiOut.c218 (*handle) = (MidiDeviceHandle*) malloc(sizeof(MidiDeviceHandle));
402 hdr->lpData = malloc(size);
/openjdk7/jdk/src/share/native/java/util/zip/
H A Dzip_util.c343 zip->comment = malloc(clen + 1);
485 zip->metanames[i] = (char *) malloc(length+1);
640 if ((cenbuf = malloc((size_t) cenlen)) == NULL ||
661 table = zip->table = malloc(tablelen * sizeof(table[0]));
936 if ((cen = malloc(bufsize)) == NULL) goto Catch;
989 if ((ze = (jzentry *) malloc(sizeof(jzentry))) == NULL) return NULL;
1018 if ((ze->name = malloc(nlen + 1)) == NULL) goto Catch;
1025 if ((ze->extra = malloc(elen + 2)) == NULL) goto Catch;
1067 if ((ze->comment = malloc(clen + 1)) == NULL) goto Catch;
/openjdk7/jdk/src/macosx/native/com/sun/media/sound/
H A DPLATFORM_API_MacOSX_MidiUtils.c470 (*handle) = (MacMidiDeviceHandle*) malloc(sizeof(MacMidiDeviceHandle));
632 pthread_cond_t* cond = (pthread_cond_t*) malloc(sizeof(pthread_cond_t));
675 pthread_mutex_t* lock = (pthread_mutex_t*) malloc(sizeof(pthread_mutex_t));
/openjdk7/jdk/src/windows/native/sun/java2d/opengl/
H A DWGLGraphicsConfig.c452 oglc = (OGLContext *)malloc(sizeof(OGLContext));
461 ctxinfo = (WGLCtxInfo *)malloc(sizeof(WGLCtxInfo));
675 wglinfo = (WGLGraphicsConfigInfo *)malloc(sizeof(WGLGraphicsConfigInfo));
/openjdk7/jdk/src/share/native/sun/security/pkcs11/wrapper/
H A Dp11_sessmgmt.c99 notifyEncapsulation = (NotifyEncapsulation *) malloc(sizeof(NotifyEncapsulation));
302 ckpState = (CK_BYTE_PTR) malloc(ckStateLength);
436 newNode = (NotifyListNode *) malloc(sizeof(NotifyListNode));
/openjdk7/jdk/src/share/native/sun/security/smartcardio/
H A Dpcsc.c123 tab = (char **)malloc(cnt * sizeof(char *));
160 mszReaders = malloc(size);
277 SCARD_READERSTATE *readerState = malloc(readers * sizeof(SCARD_READERSTATE));
/openjdk7/hotspot/src/share/vm/memory/
H A DresourceArea.hpp76 // use malloc, but save pointer in res. area for later freeing
78 return (*save = (char*)os::malloc(size, mtThread));
/openjdk7/hotspot/src/os/solaris/vm/
H A Djsig.c71 sact = (struct sigaction *)malloc((maxsignum+1) * (size_t)sizeof(struct sigaction));
/openjdk7/hotspot/src/share/vm/adlc/
H A Darena.cpp47 free(k); // Free chunk (was malloc'd)
167 return (void *) malloc(size);
/openjdk7/hotspot/src/share/vm/services/
H A DmemRecorder.hpp59 return os::malloc(size, (mtNMT | otNMTRecorder));
191 assert(!p1->is_vm_pointer() && !p2->is_vm_pointer(), "malloc pointer only");
/openjdk7/hotspot/src/share/vm/utilities/
H A DelfFile.cpp50 m_filepath = (const char*)os::malloc(len * sizeof(char), mtInternal);
/openjdk7/jdk/src/windows/native/sun/net/dns/
H A DResolverConfigurationImpl.c124 adapterP = (IP_ADAPTER_INFO *)malloc(size);
/openjdk7/jdk/src/share/demo/jvmti/waiters/
H A DAgent.cpp122 malloc(monitor_list_size*(int)sizeof(Monitor*));
/openjdk7/jdk/src/share/native/com/sun/tools/jdi/
H A DSharedMemoryTransport.c43 * standard malloc and free for allocation.
46 return malloc(size);
/openjdk7/jdk/src/share/native/java/lang/
H A DClass.c116 clname = malloc(len + 1);
/openjdk7/jdk/src/share/native/sun/awt/splashscreen/
H A Djava_awt_SplashScreen.c61 splash->overlayData = SAFE_SIZE_ARRAY_ALLOC(malloc, dataSize, sizeof(rgbquad_t));
/openjdk7/jdk/src/share/native/sun/management/
H A DFlag.c104 globals = (jmmVMGlobal*) malloc(gsize);
/openjdk7/jdk/src/share/native/sun/security/ec/impl/
H A Decp_mont.c69 mmm = (mp_mont_modulus *) malloc(sizeof(mp_mont_modulus));
/openjdk7/jdk/src/solaris/bin/
H A Djexec.c171 nargv = (const char **) malloc((argc + 2) * (sizeof (const char *)));
/openjdk7/jdk/src/macosx/native/sun/awt/
H A DCTextPipe.m320 and improve accountability for JNI resources, malloc'd memory, and error handling.
324 aquired at a given stage, must be released in that stage. Any error that occurs (like a failed malloc)
481 // we malloc a buffer to hold the glyphs and their advances, otherwise we use stack allocated buffers.
506 // otherwise, we should malloc and free buffers for this large run
507 CGGlyph *glyphs = (CGGlyph *)malloc(sizeof(CGGlyph) * length);
508 int *uniChars = (int *)malloc(sizeof(int) * length);
509 CGSize *advances = (CGSize *)malloc(sizeof(CGSize) * length);
611 jchar *copyUnichars = malloc(length * sizeof(jchar));
613 [JNFException raise:env as:kOutOfMemoryError reason:"Failed to malloc memory to create the glyphs for string drawing"];
/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/shark/
H A DsharkCompiler.cpp181 SharkEntry *entry = (SharkEntry *) cb.malloc(sizeof(SharkEntry));
234 SharkEntry *entry = (SharkEntry *) cb.malloc(sizeof(SharkEntry));
/openjdk7/jdk/src/solaris/native/sun/awt/
H A Dawt_Robot.c179 masks = (jint *)SAFE_SIZE_ARRAY_ALLOC(malloc, sizeof(jint), num_buttons);
237 !(ary = (jint *) SAFE_SIZE_ARRAY_ALLOC(malloc, width * height, sizeof (jint))))
/openjdk7/jdk/src/solaris/native/sun/java2d/x11/
H A DX11FontScaler_md.c234 XCharStruct* newChar = (XCharStruct*)malloc(sizeof(XCharStruct));
284 glyphInfo = (GlyphInfo*)malloc(sizeof(GlyphInfo)+imageSize);

Completed in 131 milliseconds

1234567891011>>