Bug 1548402 - dom.enable_performance pref must be thread-safe, r=Ehsan
authorAndrea Marchesini <amarchesini@mozilla.com>
Wed, 01 May 2019 22:55:20 +0000
changeset 531011 dae4370a4b010a27c6ab3528935a2b389d6f388b
parent 531010 e9ea26dd5b6860369222508e8510888db71c1de4
child 531012 34dd0113415f1aa2b4fd8e457006e28b047a185d
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersEhsan
bugs1548402
milestone68.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 1548402 - dom.enable_performance pref must be thread-safe, r=Ehsan Differential Revision: https://phabricator.services.mozilla.com/D29583
modules/libpref/init/StaticPrefList.h
--- a/modules/libpref/init/StaticPrefList.h
+++ b/modules/libpref/init/StaticPrefList.h
@@ -474,17 +474,17 @@ VARCACHE_PREF(
   RelaxedAtomicBool, false
 )
 
 // Enable Performance API
 // Whether nonzero values can be returned from performance.timing.*
 VARCACHE_PREF(
   "dom.enable_performance",
    dom_enable_performance,
-  bool, true
+  RelaxedAtomicBool, true
 )
 
 // Enable Performance Observer API
 VARCACHE_PREF(
   "dom.enable_performance_observer",
    dom_enable_performance_observer,
   RelaxedAtomicBool, true
 )