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

Method set_max_length

BeefRT/gperftools/src/thread_cache.h:190–192  ·  view source on GitHub ↗

Set the maximum length of the list. If 'new_max' > length(), the client is responsible for removing objects from the list.

Source from the content-addressed store, hash-verified

188 // Set the maximum length of the list. If 'new_max' > length(), the
189 // client is responsible for removing objects from the list.
190 void set_max_length(size_t new_max) {
191 max_length_ = new_max;
192 }
193
194 // Return the number of times that length() has gone over max_length().
195 size_t length_overages() const {

Callers 3

FetchFromCentralCacheMethod · 0.45
ListTooLongMethod · 0.45
ScavengeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected