Bug 1465470 Part 8 - Tolerate pthread_setname_np failing when recording or replaying, r=till.

--HG--
extra : rebase_source : 147d5331f7e9f71181e71e54aa69bc67dfd3452e
This commit is contained in:
Brian Hackett 2018-07-23 15:05:29 +00:00
parent b5f74e9778
commit 79ff2addad

View File

@ -197,7 +197,7 @@ js::ThisThread::SetName(const char* name)
#else
rv = pthread_setname_np(pthread_self(), name);
#endif
MOZ_RELEASE_ASSERT(!rv);
MOZ_RELEASE_ASSERT(!rv || mozilla::recordreplay::IsRecordingOrReplaying());
}
void