Home | History | Annotate | Download | only in vm

Lines Matching refs:buffer

18  * Allocation tracking and reporting.  We maintain a circular buffer with
21 * There are two basic approaches: manage the buffer with atomic updates
261 once in a memory buffer.
278 * We need to handle underflow in our circular buffer, so we add
366 * "baseLen" is zero. The return value is used to allocate a buffer.
367 * On the second call, "ptr" points to a data buffer, and "baseLen"
509 u1* buffer = NULL;
549 * (Could also just write to an expanding buffer.)
561 * Part 3: allocate a buffer and generate the output.
565 buffer = (u1*) malloc(totalSize);
566 strPtr = buffer + baseSize;
567 generateBaseOutput(buffer, baseSize, classNames, methodNames, fileNames);
571 if (strPtr - buffer != (int)totalSize) {
572 ALOGE("size mismatch (%d vs %zd)", strPtr - buffer, totalSize);
575 //dvmPrintHexDump(buffer, totalSize);
577 *pData = buffer;
579 buffer = NULL; // don't free -- caller will own
586 free(buffer);