MCPcopy Create free account
hub / github.com/beefytech/Beef / UpdateObject

Method UpdateObject

BeefRT/gperftools/src/tests/tcmalloc_unittest.cc:432–438  ·  view source on GitHub ↗

Mutate a random object

Source from the content-addressed store, hash-verified

430
431 // Mutate a random object
432 void UpdateObject() {
433 if (heap_.empty()) return;
434 const int index = rnd_.Uniform(heap_.size());
435 CheckContents(heap_[index]);
436 heap_[index].generation++;
437 FillContents(&heap_[index]);
438 }
439
440 // Free a random object
441 void FreeObject() {

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
UniformMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected