bug 1206771 - fix reentrantFlag compiler warning on >= beta r=jduell a=sylvestre
authorPatrick McManus <mcmanus@ducksong.com>
Mon, 21 Sep 2015 13:22:23 -0400
changeset 296110 15c5205c623f27ac030e71a096f0a9bf892b4003
parent 296109 7f2f0fb041b1e23aea99154351f3e07fc8161a15
child 296111 ecf66181845e3c6baad49ded18203ddd68ec003d
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjduell, sylvestre
bugs1206771
milestone43.0a2
bug 1206771 - fix reentrantFlag compiler warning on >= beta r=jduell a=sylvestre
netwerk/protocol/http/nsHttpTransaction.cpp
--- a/netwerk/protocol/http/nsHttpTransaction.cpp
+++ b/netwerk/protocol/http/nsHttpTransaction.cpp
@@ -787,16 +787,18 @@ nsHttpTransaction::WritePipeSegment(nsIO
     return rv; // failure code only stops WriteSegments; it is not propagated.
 }
 
 nsresult
 nsHttpTransaction::WriteSegments(nsAHttpSegmentWriter *writer,
                                  uint32_t count, uint32_t *countWritten)
 {
     static bool reentrantFlag = false;
+    LOG(("nsHttpTransaction::WriteSegments %p reentrantFlag=%d",
+         this, reentrantFlag));
     MOZ_DIAGNOSTIC_ASSERT(!reentrantFlag);
     reentrantFlag = true;
     MOZ_ASSERT(PR_GetCurrentThread() == gSocketThread);
 
     if (mTransactionDone) {
         reentrantFlag = false;
         return NS_SUCCEEDED(mStatus) ? NS_BASE_STREAM_CLOSED : mStatus;
     }