Status: New
Owner: ----

New issue 3791 by [email protected]: Weak callback not called for all objects returned from generators.
https://code.google.com/p/v8/issues/detail?id=3791

I'm attaching a modified version of d8.h and d8.cc to demonstrate a problem I'm seeing with v8 3.24.

Replace d8.h and d8.cc with the attached.
[v8-3.24]$ make -j8 x64.debug werror=no library=shared
[v8-3.24]$ cd out/x64.debug
[x64.debug]$ ./d8 --harmony-generators --harmony-iteration
d8> function* gen(lim) { for (var i = 0; i < lim; i++) yield wrap(new Date())};
d8> var i = 0;
d8> for (var t of gen(2)) {i++;}
Shell::Wrap adding 0x1862400
Shell::Wrap adding 0x18713d0
1
d8> notify();
WeakCallback clearing 0x1862400
d8> notify();
d8>

What I see is that the 2nd wrapped object at 0x18713d0 never receives a callback even after garbage collection is invoked.

Attachments:
        d8.h  15.5 KB
        d8.cc  57.1 KB

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
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.

Reply via email to