Reviewers: ulan,
Description:
Limit the lifetime of handles in Map::UpdateCodeCache.
[email protected]
Please review this at https://codereview.chromium.org/236313014/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+1, -0 lines):
M src/objects.cc
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index
a362c7afe3a82ed43db847464e48df8672eda65c..241524e3d3cab3bfd99b3a45fa4d1db54da008c6
100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -7272,6 +7272,7 @@ void Map::UpdateCodeCache(Handle<Map> map,
Handle<Name> name,
Handle<Code> code) {
Isolate* isolate = map->GetIsolate();
+ HandleScope scope(isolate);
// Allocate the code cache if not present.
if (map->code_cache()->IsFixedArray()) {
Handle<Object> result = isolate->factory()->NewCodeCache();
--
--
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.