зеркало из https://github.com/mozilla/gecko-dev.git
bug 758972 - make spdysession::verifystream() a DEBUG only operation r=honzab
--HG-- extra : rebase_source : 157618d22a7fbcde1764125d50745552eddd6da6
This commit is contained in:
Родитель
3473b4bc15
Коммит
0f8d44fe13
|
@ -846,6 +846,11 @@ SpdySession2::VerifyStream(SpdyStream2 *aStream, PRUint32 aOptionalID = 0)
|
|||
// This is annoying, but at least it is O(1)
|
||||
NS_ABORT_IF_FALSE(PR_GetCurrentThread() == gSocketThread, "wrong thread");
|
||||
|
||||
#ifndef DEBUG
|
||||
// Only do the real verification in debug builds
|
||||
return true;
|
||||
#endif
|
||||
|
||||
if (!aStream)
|
||||
return true;
|
||||
|
||||
|
|
|
@ -701,6 +701,11 @@ SpdySession3::VerifyStream(SpdyStream3 *aStream, PRUint32 aOptionalID = 0)
|
|||
// This is annoying, but at least it is O(1)
|
||||
NS_ABORT_IF_FALSE(PR_GetCurrentThread() == gSocketThread, "wrong thread");
|
||||
|
||||
#ifndef DEBUG
|
||||
// Only do the real verification in debug builds
|
||||
return true;
|
||||
#endif
|
||||
|
||||
if (!aStream)
|
||||
return true;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче