Updates:
Status: WorkingAsIntended
Owner: [email protected]
Comment #1 on issue 2028 by [email protected]: garbage collection
issue
http://code.google.com/p/v8/issues/detail?id=2028
I don't see the garbage collection related problem in your snippet. When
successCB() is called, it will set _historyList either to _history or
whatever the filter() method will return. So it might end up pointing to
the same object the db.retrieveObject() returns.
The concat() builtin in addedCB() however will always give you a new Array
object containing the concatenation of the old _historyList and newItems.
I am not sure what you mean by "filterResults will be cleared
automatically". It is a local variable that will cease to exist when it
runs out of scope. The _histroyList variable however is a global variable
that will exist throughout the runtime of your application. The GC will
never modify it's content (at least not in a way that is visible to you).
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev