I don't get it what you want to achive, but if you want to remove enormous
amounts of memory data on a whimp, simply wrap them as native around a
Wrapper, provide a getter/setter function and return undefined, if it has
been freed.

The node native interface has examples of wrapper objects.
You cannot free the wrapper itself without garbage collection but the stuff
it wraps around.


On Thu, Sep 28, 2017 at 5:45 PM, Omagho <im.omar....@gmail.com> wrote:

> hello , is it possible to delete an object from memory without
> waiting/forcing garbage collector to execute ? i'm trying to impliment an
> addon to accomplish that but i wasn't able to access the actual object this
> is my source code
>
>
> void removeObject(const v8::FunctionCallbackInfo<Value>& args) {
>    Isolate* isolate = args.GetIsolate();
>    v8::Local<Value> aa = {args[0]};
>    aa.Clear();
>
>    cout<<aa.IsEmpty()<<endl;
>
>    args.GetReturnValue();
>
> }
>
> --
> Job board: http://jobs.nodejs.org/
> New group rules: https://gist.github.com/othiym23/9886289#file-
> moderation-policy-md
> Old group rules: https://github.com/joyent/node/wiki/Mailing-List-
> Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nodejs+unsubscr...@googlegroups.com.
> To post to this group, send email to nodejs@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/nodejs/3ec17e05-145e-4d5f-958d-e3be5ae67541%40googlegroups.com
> <https://groups.google.com/d/msgid/nodejs/3ec17e05-145e-4d5f-958d-e3be5ae67541%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CABg07fuoWnxMzrfki40TaJv_beaOR1-EAT7Fkoxdh7bz1o%3DuJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to