From 0f8d44fe13f4e6131b3429b0ec03179d82e7cad3 Mon Sep 17 00:00:00 2001 From: Patrick McManus Date: Fri, 20 Jul 2012 08:44:21 -0400 Subject: [PATCH] bug 758972 - make spdysession::verifystream() a DEBUG only operation r=honzab --HG-- extra : rebase_source : 157618d22a7fbcde1764125d50745552eddd6da6 --- netwerk/protocol/http/SpdySession2.cpp | 5 +++++ netwerk/protocol/http/SpdySession3.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/netwerk/protocol/http/SpdySession2.cpp b/netwerk/protocol/http/SpdySession2.cpp index 0b58844d5313..68053e480a1f 100644 --- a/netwerk/protocol/http/SpdySession2.cpp +++ b/netwerk/protocol/http/SpdySession2.cpp @@ -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; diff --git a/netwerk/protocol/http/SpdySession3.cpp b/netwerk/protocol/http/SpdySession3.cpp index 0a91d031d7f3..e65baad25e54 100644 --- a/netwerk/protocol/http/SpdySession3.cpp +++ b/netwerk/protocol/http/SpdySession3.cpp @@ -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;