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

Unified Diff: vm/object.cc

Issue 10025033: Fix a pretty blatant GC bug (was the cause of all the weird crashes on windows). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.cc
===================================================================
--- vm/object.cc (revision 6711)
+++ vm/object.cc (working copy)
@@ -8601,9 +8601,10 @@
void GrowableObjectArray::Grow(intptr_t new_capacity, Heap::Space space) const {
ASSERT(new_capacity > Capacity());
- Array& contents = Array::Handle(data());
- StorePointer(&(raw_ptr()->data_),
- Array::Grow(contents, new_capacity, space));
+ const Array& contents = Array::Handle(data());
+ const Array& new_contents =
+ Array::Handle(Array::Grow(contents, new_capacity, space));
+ StorePointer(&(raw_ptr()->data_), new_contents.raw());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698