Comment #6 on issue 3246 by [email protected]: Weak references should be
handled uniformly
http://code.google.com/p/v8/issues/detail?id=3246
There are situations that you wan't to mix weak and non-weak references in
an array. So alternatively, I think what you really want is a
single "WeakObject" object whose payload is always weak. It can probably
just be 2 words, a map and payload. Any places where you want a weak
reference, you create one of these and reference it strongly. By chaining
them together using the map pointer (which can be restored to the know map
pointer after GC), you can track all of them. To get a weak array, you just
create a FixedArray where every element is a WeakObject.
--
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.