Commit 9a842209 authored by ishell@chromium.org's avatar ishell@chromium.org

Fix for potential memory leak after putting to WeakObjectToCodeDependency table.

R=ulan@chromium.org

Review URL: https://codereview.chromium.org/254723004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20973 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 0516f641
...@@ -5656,6 +5656,7 @@ void Heap::AddWeakObjectToCodeDependency(Handle<Object> obj, ...@@ -5656,6 +5656,7 @@ void Heap::AddWeakObjectToCodeDependency(Handle<Object> obj,
Handle<DependentCode> dep) { Handle<DependentCode> dep) {
ASSERT(!InNewSpace(*obj)); ASSERT(!InNewSpace(*obj));
ASSERT(!InNewSpace(*dep)); ASSERT(!InNewSpace(*dep));
HandleScope scope(isolate());
Handle<WeakHashTable> table(WeakHashTable::cast(weak_object_to_code_table_), Handle<WeakHashTable> table(WeakHashTable::cast(weak_object_to_code_table_),
isolate()); isolate());
table = WeakHashTable::Put(table, obj, dep); table = WeakHashTable::Put(table, obj, dep);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment