зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1151168 - Don't flush profiled threads that are pending deletion on JS shutdown and don't delete expired markers when resetting the profile buffer. (r=djvj)
This commit is contained in:
Родитель
b71736a068
Коммит
d004b16340
|
@ -153,7 +153,6 @@ void ProfileBuffer::deleteExpiredStoredMarkers() {
|
|||
void ProfileBuffer::reset() {
|
||||
mGeneration += 2;
|
||||
mReadPos = mWritePos = 0;
|
||||
deleteExpiredStoredMarkers();
|
||||
}
|
||||
|
||||
#define DYNAMIC_MAX_STRING 512
|
||||
|
|
|
@ -378,7 +378,8 @@ void TableTicker::FlushOnJSShutdown(JSRuntime* aRuntime)
|
|||
|
||||
for (size_t i = 0; i < sRegisteredThreads->size(); i++) {
|
||||
// Thread not being profiled, skip it.
|
||||
if (!sRegisteredThreads->at(i)->Profile()) {
|
||||
if (!sRegisteredThreads->at(i)->Profile() ||
|
||||
sRegisteredThreads->at(i)->IsPendingDelete()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче