MCPcopy Create free account
hub / github.com/bytedance/bolt / incrementCachedPages

Method incrementCachedPages

bolt/common/caching/AsyncDataCache.h:771–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

769 std::string toString(bool details = true) const;
770
771 memory::MachinePageCount incrementCachedPages(int64_t pages) {
772 // The counter is unsigned and the increment is signed.
773 return cachedPages_.fetch_add(pages) + pages;
774 }
775
776 memory::MachinePageCount incrementPrefetchPages(int64_t pages) {
777 // The counter is unsigned and the increment is signed.

Callers 6

shouldPreloadMethod · 0.80
initializeMethod · 0.80
removeEntryLockedMethod · 0.80
evictMethod · 0.80
removeFileEntriesMethod · 0.80
TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64