MCPcopy Create free account
hub / github.com/apple/foundationdb / initGlobalData

Function initGlobalData

flowbench/GlobalData.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25static uint8_t* globalData = nullptr;
26
27static inline void initGlobalData() {
28 if (!globalData) {
29 globalData = static_cast<uint8_t*>(allocateFast(globalDataSize));
30 }
31 deterministicRandom()->randomBytes(globalData, globalDataSize);
32}
33
34KeyValueRef getKV(size_t keySize, size_t valueSize) {
35 initGlobalData();

Callers 2

getKVFunction · 0.85
getKeyFunction · 0.85

Calls 3

allocateFastFunction · 0.85
deterministicRandomFunction · 0.85
randomBytesMethod · 0.80

Tested by

no test coverage detected