Revision: 20973
Author: [email protected]
Date: Fri Apr 25 11:40:17 2014 UTC
Log: Fix for potential memory leak after putting to
WeakObjectToCodeDependency table.
[email protected]
Review URL: https://codereview.chromium.org/254723004
http://code.google.com/p/v8/source/detail?r=20973
Modified:
/branches/bleeding_edge/src/heap.cc
=======================================
--- /branches/bleeding_edge/src/heap.cc Fri Apr 25 11:00:37 2014 UTC
+++ /branches/bleeding_edge/src/heap.cc Fri Apr 25 11:40:17 2014 UTC
@@ -5656,6 +5656,7 @@
Handle<DependentCode> dep) {
ASSERT(!InNewSpace(*obj));
ASSERT(!InNewSpace(*dep));
+ HandleScope scope(isolate());
Handle<WeakHashTable>
table(WeakHashTable::cast(weak_object_to_code_table_),
isolate());
table = WeakHashTable::Put(table, obj, dep);
--
--
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.