mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1138199. r=billm
This commit is contained in:
parent
103dc00fa4
commit
319b55303d
@ -194,14 +194,14 @@ class LifoAlloc
|
||||
|
||||
// Append used chunks to the end of this LifoAlloc. We act as if all the
|
||||
// chunks in |this| are used, even if they're not, so memory may be wasted.
|
||||
void appendUsed(BumpChunk *start, BumpChunk *latest, BumpChunk *end) {
|
||||
MOZ_ASSERT(start && latest && end);
|
||||
void appendUsed(BumpChunk *otherFirst, BumpChunk *otherLatest, BumpChunk *otherLast) {
|
||||
MOZ_ASSERT(otherFirst && otherLatest && otherLast);
|
||||
if (last)
|
||||
last->setNext(start);
|
||||
last->setNext(otherFirst);
|
||||
else
|
||||
first = latest = start;
|
||||
last = end;
|
||||
this->latest = latest;
|
||||
first = otherFirst;
|
||||
latest = otherLatest;
|
||||
last = otherLast;
|
||||
}
|
||||
|
||||
void incrementCurSize(size_t size) {
|
||||
|
Loading…
Reference in New Issue
Block a user