mirror of
https://github.com/gperftools/gperftools
synced 2025-03-07 21:37:56 +00:00
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:
parent
4cbd8ad245
commit
8dde01b4de
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user