mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1569682: Fix GetSerialNumber to not destroy the just added serial number record. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D39777 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
3076806612
commit
9d647b266c
@ -489,7 +489,7 @@ static intptr_t GetSerialNumber(void* aPtr, bool aCreate) {
|
||||
"it.");
|
||||
}
|
||||
|
||||
auto record = entry.OrInsert([]() { return new SerialNumberRecord(); });
|
||||
auto& record = entry.OrInsert([]() { return new SerialNumberRecord(); });
|
||||
WalkTheStackSavingLocations(record->allocationStack);
|
||||
if (gLogJSStacks) {
|
||||
record->SaveJSStack();
|
||||
|
Loading…
Reference in New Issue
Block a user