Re: GGC questions
Boris Zbarsky <[email protected]> Sun, 6 Nov 2016 19:31:46 -0500
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <[email protected]> |
On 11/6/16 10:21 AM, [email protected] wrote: > - Is there a way to move something right away to the tenured zone? I'm not seeing public API for this. There are internal APIs that take a NewObjectKind, but nothing taking that seems to be exposed. > - Is it safe to assume that an object constructed from a JSClass with a finalizer will be allocated in the tenured zone I believe it happens to be true right now that if there is a finalizer _and_ the JSClass doesn't have the JSCLASS_SKIP_NURSERY_FINALIZE flag. But it's not clear to me to what extent this is guaranteed going forward, if at all. > - Does an object in the tenured zone can move? (maybe because of the CGC?) Yes, indeed. -Boris