CppGC should not be calling a finalizer of an object that is still reachable. >From your description it's hard to determine whether this is a bug in CppGC or in your code. Can you file a bug with all details and a repro?
Thanks. On Mon, Nov 25, 2024 at 2:31 PM 'Ronald Fenner' via v8-dev < [email protected]> wrote: > I know I'm probably missing something but How to I prevent CppGC from > calling the finalizer on a Object wrapped in a JS Object. > > The object I create through the Cpp Heap is set to one of the JS Object's > internal fields for reference for normal method callback. > > When I go to create the snapshot blob the Cpp Heap calls the finalizer on > the object however the JS object is still alive as the Internal field > serializer gets called though the pointer to the cpp object has now been > destroyed and the value was I was expecting to serialize is reset. > > Thanks > > > -- > -- > 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]. > To view this discussion visit > https://groups.google.com/d/msgid/v8-dev/104775f1-ee50-47cf-a5c3-7f0043eb8fe7n%40googlegroups.com > <https://groups.google.com/d/msgid/v8-dev/104775f1-ee50-47cf-a5c3-7f0043eb8fe7n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- -- 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]. To view this discussion visit https://groups.google.com/d/msgid/v8-dev/CAJFGqfObNorzvC7%2BDVyRGHSCn-YBVLE_e9jLhxcJ4Mm5ipk%3DyQ%40mail.gmail.com.
