Skip to content

native callback with object gc #2

Description

@seanshpark

I'm adding this issue to discuss in open so may help others to understand and join (to the issues)

Codes can be efficient if some native function is called when JS Object is garbage collected so that some block of memory linked to that Object can be freed. Something like MakeWeak in V8.

API something like this;

typedef bool (*jerry_object_free_callback_t) (const jerry_api_object_t* obj);
bool jerry_api_set_objectfreecb(jerryt_api_object_t* obj, jerry_object_free_callback_t handler_p);

Activity

  1. self-assigned this
    on Apr 28, 2015
  2. seanshpark commented on Apr 28, 2015

    @seanshpark
    Author

    had to remove unwanted(wrong DCO) branch
    hope 48cc9b5 will do.

  3. added a commit that references this issue on Apr 28, 2015
  4. seanshpark commented on May 6, 2015

    @seanshpark
    Author

    5ec3e2f merged to master

  5. added a commit that references this issue on Nov 23, 2015
  6. added a commit that references this issue on Jul 6, 2016
    5a594dd
  7. added a commit that references this issue on Aug 29, 2016
  8. added 2 commits that reference this issue on Oct 18, 2016
  9. added a commit that references this issue on Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions