Bug 1465452 Part 11 - Record refcount changes for pipe input/output streams, r=erahm.

--HG--
extra : rebase_source : 4c5f16a40e92688a3724da10c341dc4961911038
This commit is contained in:
Brian Hackett 2018-07-21 14:34:51 +00:00
parent 91398f534f
commit 2f0f16c25a

View File

@ -149,7 +149,10 @@ class nsPipeInputStream final
, public nsIBufferedInputStream
{
public:
NS_DECL_THREADSAFE_ISUPPORTS
// Pipe input streams preserve their refcount changes when record/replaying,
// as otherwise the thread which destroys the stream may vary between
// recording and replaying.
NS_DECL_THREADSAFE_ISUPPORTS_WITH_RECORDING(recordreplay::Behavior::Preserve)
NS_DECL_NSIINPUTSTREAM
NS_DECL_NSIASYNCINPUTSTREAM
NS_DECL_NSISEEKABLESTREAM
@ -300,7 +303,9 @@ public:
friend class nsPipeOutputStream;
friend class AutoReadSegment;
NS_DECL_THREADSAFE_ISUPPORTS
// As for nsPipeInputStream, preserve refcount changes when recording or
// replaying.
NS_DECL_THREADSAFE_ISUPPORTS_WITH_RECORDING(recordreplay::Behavior::Preserve)
NS_DECL_NSIPIPE
// nsPipe methods: