Proxied procs aren't getting cleaned up
Reported by John Barnette | April 2nd, 2008 @ 02:01 AM
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 April 2nd, 2008 @ 10:54 AM
- 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 April 3rd, 2008 @ 10:14 AM
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 April 7th, 2008 @ 03:55 PM
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 April 20th, 2008 @ 10:49 PM
- 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.
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
- 28 Enumerating jsland proxies is broken See notes on #24.
- 23 Ruby arrays in jsland See notes on #24.