зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1798600 - Use Created() during creation instead of Mapped(). r=nika
This is less of lie and avoids calling Mapped() twice. Once during SharedMemoryBasic::Create and once during SharedMemoryBasic::Map. This fixes shmem-mapped giving the appearence of leaking because of the double counting. Differential Revision: https://phabricator.services.mozilla.com/D160990
This commit is contained in:
Родитель
823bd3a8b0
Коммит
e63cdeb5e9
|
@ -81,7 +81,7 @@ bool SharedMemoryBasic::Create(size_t size) {
|
|||
return false;
|
||||
}
|
||||
|
||||
Mapped(size);
|
||||
Created(size);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче