MCPcopy Create free account
hub / github.com/RenderKit/embree / os_init

Function os_init

common/sys/alloc.cpp:163–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 }
162
163 bool os_init(bool hugepages, bool verbose)
164 {
165 Lock<MutexSys> lock(os_init_mutex);
166
167 if (!hugepages) {
168 huge_pages_enabled = false;
169 return true;
170 }
171
172 if (GetLargePageMinimum() != PAGE_SIZE_2M) {
173 huge_pages_enabled = false;
174 return false;
175 }
176
177 huge_pages_enabled = true;
178 return true;
179 }
180
181 void* os_malloc(size_t bytes, bool& hugepages)
182 {

Callers 1

DeviceMethod · 0.85

Calls 1

openMethod · 0.45

Tested by

no test coverage detected