Windows mapped-page release: the switch is STRATA_FILE_RELEASE (#818)
STRATA_ARENA_RELEASE already exists and means the opposite (=0 keeps the experts a GPU holds, generate.cpp), so the opt-in is renamed in the engine, the tests, DETAILS.md and the bench folder. The working-set assert in file_expert_source_test reports, not fails, a trimmed page that Windows maps straight back with the switch on. The bench folder keeps the README and the two scripts (the raw export and the harness self-tests are dropped). Co-authored-by: jordicor <59069878+jordicor@users.noreply.github.com>
This commit is contained in:
1 parent
441a8f792a
commit
f60ae8d0a4
9 files changed
+19
-1658
No files matched your search
@@ -1585,7 +1585,7 @@ const uint8_t* FileExpertSource::mapped_blob(int64_t layer, int64_t expert) cons
|
||||
uint64_t FileExpertSource::release(int64_t layer, int64_t expert) {
|
||||
#if defined(_WIN32)
|
||||
static const bool enabled = [] {
|
||||
const char* v = std::getenv("STRATA_ARENA_RELEASE");
|
||||
const char* v = std::getenv("STRATA_FILE_RELEASE");
|
||||
return v != nullptr && std::strcmp(v, "1") == 0;
|
||||
}();
|
||||
if (!enabled || base_ == nullptr || layer < 0 || expert < 0 || layer >= n_layers_ || expert >= n_expert_)
|
||||
|
||||
Reference in new issue
Block a user