Bug 1047648 - TelemetryImpl::mHistogramMap can use nsDepCharHashKey. r=aklotz
authorAndrew McCreight <continuation@gmail.com>
Wed, 06 Aug 2014 11:26:35 -0700
changeset 198147 0ff2c61b9e41
parent 198146 1b7fd4e3536b
child 198148 3f8f7939bbd6
push id47315
push useramccreight@mozilla.com
push date2014-08-06 18:26 +0000
treeherdermozilla-inbound@0ff2c61b9e41 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaklotz
bugs1047648
milestone34.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 1047648 - TelemetryImpl::mHistogramMap can use nsDepCharHashKey. r=aklotz
toolkit/components/telemetry/Telemetry.cpp
--- a/toolkit/components/telemetry/Telemetry.cpp
+++ b/toolkit/components/telemetry/Telemetry.cpp
@@ -627,17 +627,17 @@ private:
                                       JSContext *cx, JS::Handle<JSObject*> obj);
   static bool AddonReflector(AddonEntryType *entry, JSContext *cx, JS::Handle<JSObject*> obj);
   static bool CreateHistogramForAddon(const nsACString &name,
                                       AddonHistogramInfo &info);
   void ReadLateWritesStacks(nsIFile* aProfileDir);
   AddonMapType mAddonMap;
 
   // This is used for speedy string->Telemetry::ID conversions
-  typedef nsBaseHashtableET<nsCharPtrHashKey, Telemetry::ID> CharPtrEntryType;
+  typedef nsBaseHashtableET<nsDepCharHashKey, Telemetry::ID> CharPtrEntryType;
   typedef AutoHashtable<CharPtrEntryType> HistogramMapType;
   HistogramMapType mHistogramMap;
   bool mCanRecord;
   static TelemetryImpl *sTelemetry;
   AutoHashtable<SlowSQLEntryType> mPrivateSQL;
   AutoHashtable<SlowSQLEntryType> mSanitizedSQL;
   // This gets marked immutable in debug builds, so we can't use
   // AutoHashtable here.