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

Unified Diff: src/frames.h

Issue 1108013003: Introduce --zap-cpp-pointers (off by default) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixes Created 3 years, 7 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 | « src/flag-definitions.h ('k') | src/frames.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.h
diff --git a/src/frames.h b/src/frames.h
index fb786df539d7b31d6a1a53ad8f6482c411d75973..3171ac9cf6063da8f960e07ab2f13a26c1344786 100644
--- a/src/frames.h
+++ b/src/frames.h
@@ -1606,6 +1606,14 @@ class StackFrameLocator BASE_EMBEDDED {
// zone memory.
Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
+#ifdef DEBUG
+// Walks the stack, finds sections belonging to C++ frames, looks for values
+// that look like heap pointers inside them, and zaps them. Intended to flush
+// out GC safety issues; only call this when the program must be prepared for
+// GC to happen.
+void ZapHeapPointersInCppFrames(Isolate* isolate, ThreadLocalTop* t = NULL);
+#endif
+
} // namespace internal
} // namespace v8
« no previous file with comments | « src/flag-definitions.h ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698