Bug 1510724 Part 1 - Add accessor for wrapped PLDHashTable operations, r=froydnj.
authorBrian Hackett <bhackett1024@gmail.com>
Wed, 28 Nov 2018 09:09:01 -1000
changeset 505569 c1a7bed23922c06094d251ac6de96af92cc6d649
parent 505568 e1e05cf314a30fcaa2c859917dffdad32e3ae0b6
child 505570 a69ff828253927c4731ec5dc39d29861fce9bcdf
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1510724
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1510724 Part 1 - Add accessor for wrapped PLDHashTable operations, r=froydnj.
xpcom/ds/PLDHashTable.h
--- a/xpcom/ds/PLDHashTable.h
+++ b/xpcom/ds/PLDHashTable.h
@@ -430,16 +430,22 @@ class PLDHashTable {
 
   ~PLDHashTable();
 
   // This should be used rarely.
   const PLDHashTableOps* Ops() const {
     return mozilla::recordreplay::UnwrapPLDHashTableCallbacks(mOps);
   }
 
+  // Provide access to the raw ops to internal record/replay structures.
+  const PLDHashTableOps* RecordReplayWrappedOps() const
+  {
+    return mOps;
+  }
+
   // Size in entries (gross, not net of free and removed sentinels) for table.
   // This can be zero if no elements have been added yet, in which case the
   // entry storage will not have yet been allocated.
   uint32_t Capacity() const {
     return mEntryStore.Get() ? CapacityFromHashShift() : 0;
   }
 
   uint32_t EntrySize() const { return mEntrySize; }