#24 ✓resolved
John Barnette

Proxied procs aren't getting cleaned up

Reported by John Barnette | 2008-04-02 02:01:01 UTC

The JSClass for JSObjects representing JSFunctions (js_FunctionClass) just uses JS_FinalizeStub, which means we aren't cleaning Ruby procs out of @gcthings or context->rbids. Consider setting the stub for all JSFunctions if we can safely get away with it.

Comments and changes to this ticket

  • John Barnette

    John Barnette 2008-04-02 10:54:39 UTC

    • State changed from “new” to “open”
    • Title changed from “Proxies procs aren't getting cleaned up” to “Proxied procs aren't getting cleaned up”
  • John Barnette

    John Barnette 2008-04-03 10:14:53 UTC

    Yeah, we should just reach in to js_FunctionClass and inject a custom finalize stub. See if it has the magical "this is a Ruby proc" marker property, and, if it does, cleanup as normal.

  • John Barnette

    John Barnette 2008-04-07 15:55:31 UTC

    Alternatively, we could start having a lot more JSland proxy classes:

    • JSProxyClass, for most Ruby objects, including Hashes
    • JSArrayProxyClass, for Ruby arrays
    • JSProcProxyClass, for Ruby procs
  • John Barnette

    John Barnette 2008-04-20 22:49:29 UTC

    • State changed from “open” to “resolved”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Referenced by

Pages