Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1770)

Unified Diff: Source/wtf/Alias.h

Issue 1315113006: Add partitionsOutOfMemoryUsingXXX to know Blink memory usage from OOM crash reports (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/wtf/Alias.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/Alias.h
diff --git a/Source/wtf/Alias.h b/Source/wtf/Alias.h
new file mode 100644
index 0000000000000000000000000000000000000000..9d0ff7522cade73ae4c903d80b012367035ab516
--- /dev/null
+++ b/Source/wtf/Alias.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef Alias_h
+#define Alias_h
+
+#include "wtf/WTFExport.h"
+
+namespace WTF {
+
+// Make the optimizer think that var is aliased. This is to prevent it from
+// optimizing out variables that would not otherwise be live at the point
+// of a potential crash.
+void WTF_EXPORT alias(const void* var);
+
+} // namespace WTF
+
+#endif // Alias_h
« no previous file with comments | « no previous file | Source/wtf/Alias.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698