MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / HardDisable

Method HardDisable

FEXCore/Source/Utils/AllocatorOverride.cpp:79–82  ·  view source on GitHub ↗

Hard disabling of per-thread allocation fault checking. No coming back from this, used on thread destruction.

Source from the content-addressed store, hash-verified

77// Hard disabling of per-thread allocation fault checking.
78// No coming back from this, used on thread destruction.
79FEX_DEFAULT_VISIBILITY void YesIKnowImNotSupposedToUseTheGlibcAllocator::HardDisable() {
80 // Just set it to half of its maximum value so it never wraps back around.
81 SkipEvalForThread = std::numeric_limits<decltype(SkipEvalForThread)>::max() / 2;
82}
83
84// Enable global fault checking.
85void SetupFaultEvaluate() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected