Home | History | Annotate | Download | only in tests

Lines Matching defs:ALLOC

165 static const int FLAGS_lgmaxsize = 16;   // lg() of the max size object to alloc
303 void* alloc(size_t size) {
348 enum Type { ALLOC, FREE, UPDATE, PASS };
394 rnd_.AddType(ALLOC, FLAGS_allocweight, "allocate");
403 case ALLOC: AllocateObject(); break;
422 object.ptr = static_cast<char*>(rnd_.alloc(object.size));
550 void* p = rnd->alloc(s);
565 p = rnd->alloc(kMaxSignedSize + i);
567 p = rnd->alloc(kMaxSignedSize - i);
597 #ifndef DEBUGALLOCATION // debug alloc doesn't try to minimize reallocs
995 // Allocate and deallocate blocks of increasing sizes to check if the alloc
1003 void *test1 = rnd.alloc(size);
1020 void* p1 = rnd.alloc(0);
1022 void* p2 = rnd.alloc(0);
1225 void* p = rnd.alloc(mb_to_allocate << 20);
1290 void* large_object = rnd.alloc(s);