Title: [215060] trunk/Source/WebKit2
Revision
215060
Author
ander...@apple.com
Date
2017-04-06 14:35:09 -0700 (Thu, 06 Apr 2017)

Log Message

OptionSet options need to be powers of two
https://bugs.webkit.org/show_bug.cgi?id=170565

Reviewed by Chris Dumez.

Change Cache::Option to be powers of two.

* NetworkProcess/cache/NetworkCache.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (215059 => 215060)


--- trunk/Source/WebKit2/ChangeLog	2017-04-06 21:12:25 UTC (rev 215059)
+++ trunk/Source/WebKit2/ChangeLog	2017-04-06 21:35:09 UTC (rev 215060)
@@ -1,3 +1,14 @@
+2017-04-06  Anders Carlsson  <ander...@apple.com>
+
+        OptionSet options need to be powers of two
+        https://bugs.webkit.org/show_bug.cgi?id=170565
+
+        Reviewed by Chris Dumez.
+
+        Change Cache::Option to be powers of two.
+
+        * NetworkProcess/cache/NetworkCache.h:
+
 2017-04-06  Youenn Fablet  <you...@apple.com>
 
         WebRTC tests gardening

Modified: trunk/Source/WebKit2/NetworkProcess/cache/NetworkCache.h (215059 => 215060)


--- trunk/Source/WebKit2/NetworkProcess/cache/NetworkCache.h	2017-04-06 21:12:25 UTC (rev 215059)
+++ trunk/Source/WebKit2/NetworkProcess/cache/NetworkCache.h	2017-04-06 21:35:09 UTC (rev 215060)
@@ -96,11 +96,11 @@
     friend class WTF::NeverDestroyed<Cache>;
 public:
     enum class Option {
-        EfficacyLogging,
+        EfficacyLogging = 1 << 0,
         // In testing mode we try to eliminate sources of randomness. Cache does not shrink and there are no read timeouts.
-        TestingMode,
+        TestingMode = 1 << 1,
 #if ENABLE(NETWORK_CACHE_SPECULATIVE_REVALIDATION)
-        SpeculativeRevalidation,
+        SpeculativeRevalidation = 1 << 2,
 #endif
     };
     bool initialize(const String& cachePath, OptionSet<Option>);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to