unbreak emergency malloc tests on systems without "good" TLS

Our implementation of emergency malloc slow-path actually depends on
good TLS implementation. So on systems without good TLS (i.e. OSX), we
lied to ourselves that emergency malloc is available, but then failed
tests.
This commit is contained in:
Aliaksey Kandratsenka 2024-03-27 18:33:44 -04:00
parent 4cbd8ad245
commit 8dde01b4de

View File

@ -592,11 +592,7 @@ public:
}
bool HasEmergencyMalloc() override {
#if ENABLE_EMERGENCY_MALLOC
return true;
#else
return false;
#endif
return kUseEmergencyMalloc;
}
void WithEmergencyMallocEnabled(FunctionRef<void()> body) override {