I see. Are you certain that there is no other source of memory leaking? Yang
On Fri, Jul 19, 2019 at 3:31 PM <[email protected]> wrote: > I believe I'm doing it right as I see my weak callback handler get called: > > v8::Global<v8::Object>* persistentObject; > ... > this->objectHandle->persistentObject = new v8::Global<v8::Object>(i, obj); > this->objectHandle->persistentObject->SetWeak(this, imWeak, > v8::WeakCallbackType::kParameter); > > where "imWeak" cleans up the native resources. > > I see the memory go up and go down after GC, ie. the following pattern: > > 100-150-120-160-130-170MB etc. > > When the callback handler wasn't getting called at all, the memory just > grew > > -- > -- > 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 on the web visit > https://groups.google.com/d/msgid/v8-dev/8f3fe00c-8c15-4e6c-bf49-87417687d9fd%40googlegroups.com > <https://groups.google.com/d/msgid/v8-dev/8f3fe00c-8c15-4e6c-bf49-87417687d9fd%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 on the web visit https://groups.google.com/d/msgid/v8-dev/CAFSTc_hwA7V%3DXj6WrwOgNkkf8j_W6ekcsuhrTSwwq89KW81bHA%40mail.gmail.com.
