mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1238582 - Skip simulated OOM check in the case where we're growing within reserved space; r=Waldo
This commit is contained in:
parent
9fe43fddfd
commit
27cb748ee1
@ -972,7 +972,13 @@ Vector<T, N, AP>::growBy(size_t aIncr)
|
||||
return false;
|
||||
}
|
||||
} else if (aIncr + mLength > N) {
|
||||
if (!allocPolicy().checkSimulatedOOM()) {
|
||||
bool checkSimulatedOOM =
|
||||
#ifdef DEBUG
|
||||
aIncr + mLength > mReserved;
|
||||
#else
|
||||
true;
|
||||
#endif
|
||||
if (checkSimulatedOOM && !allocPolicy().checkSimulatedOOM()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user