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

Method num_objects_to_move

BeefRT/gperftools/src/common.h:246–248  ·  view source on GitHub ↗

Number of objects to move between a per-thread list and a central list in one shot. We want this to be not too small so we can amortize the lock overhead for accessing the central list. Making it too big may temporarily cause unnecessary memory wastage in the per-thread free list until the scavenger cleans up the list.

Source from the content-addressed store, hash-verified

244 // it too big may temporarily cause unnecessary memory wastage in the
245 // per-thread free list until the scavenger cleans up the list.
246 inline int num_objects_to_move(size_t cl) {
247 return num_objects_to_move_[cl];
248 }
249};
250
251// Allocates "bytes" worth of memory and returns it. Increments

Callers 8

FetchFromCentralCacheMethod · 0.45
ListTooLongMethod · 0.45
ReleaseToCentralCacheMethod · 0.45
ScavengeMethod · 0.45
InitMethod · 0.45
InsertRangeMethod · 0.45
RemoveRangeMethod · 0.45
tc_lengthMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected