Revision: 21491
Author: [email protected]
Date: Mon May 26 11:40:34 2014 UTC
Log: Actually fix the memory leak in debugger wrt promises.
In the fuzz test the debugger is not actually loaded...
[email protected]
Review URL: https://codereview.chromium.org/304453003
http://code.google.com/p/v8/source/detail?r=21491
Modified:
/branches/bleeding_edge/src/debug.cc
=======================================
--- /branches/bleeding_edge/src/debug.cc Mon May 26 11:13:18 2014 UTC
+++ /branches/bleeding_edge/src/debug.cc Mon May 26 11:40:34 2014 UTC
@@ -807,15 +807,15 @@
void Debug::Unload() {
ClearAllBreakPoints();
+ // Match unmatched PromiseHandlePrologue calls.
+ while (thread_local_.promise_on_stack_) PromiseHandleEpilogue();
+
// Return debugger is not loaded.
if (!IsLoaded()) return;
// Clear the script cache.
DestroyScriptCache();
- // Match unmatched PromiseHandlePrologue calls.
- while (thread_local_.promise_on_stack_) PromiseHandleEpilogue();
-
// Clear debugger context global handle.
GlobalHandles::Destroy(Handle<Object>::cast(debug_context_).location());
debug_context_ = Handle<Context>();
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.