19 std::vector<std::pair<size_t, char*> > allocated;
24 for (
int i = 0; i < N; i++) {
26 if (i % (N / 10) == 0) {
43 for (
int b = 0; b < s; b++) {
48 allocated.push_back(std::make_pair(s, r));
54 for (
int i = 0; i < allocated.size(); i++) {
55 size_t num_bytes = allocated[i].first;
56 const char* p = allocated[i].second;
57 for (
int b = 0; b < num_bytes; b++) {
66 int main(
int argc,
char** argv) {
char * Allocate(size_t bytes)
int main(int argc, char **argv)
TEST(CorruptionTest, Recovery)
size_t MemoryUsage() const
char * AllocateAligned(size_t bytes)