mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.1 KiB
32 lines
1.1 KiB
--- !ditz.rubyforge.org,2008-03-06/issue
|
|
title: fix function instance refcount collection to deal with prototype reference loop
|
|
desc: |-
|
|
If there is some easy fix, this should be attempted: a majority of plain
|
|
functions don't even need the automatic prototype object so it shouldn't
|
|
prevent collection.
|
|
|
|
A few approaches:
|
|
|
|
* Implement a "dirty" bit for objects. If the prototype object (and
|
|
function object) are not dirty, we can be sure that the reference loop
|
|
can be broken internally. Internal code can then e.g. set f.prototype
|
|
to null and resume normal collection.
|
|
|
|
* If function prototype object "autospawning" is implemented, this can
|
|
also be used to detect that the prototype object hasn't been created
|
|
(because it hasn't been needed), so the function would be collectable.
|
|
type: :task
|
|
component: duk
|
|
release:
|
|
reporter: sva <sami.vaarala@iki.fi>
|
|
status: :unstarted
|
|
disposition:
|
|
creation_time: 2014-03-14 15:19:24.301647 Z
|
|
references: []
|
|
|
|
id: d351318e427eec601f6d5e2fe2068081a7551e43
|
|
log_events:
|
|
- - 2014-03-14 15:19:24.541523 Z
|
|
- sva <sami.vaarala@iki.fi>
|
|
- created
|
|
- ""
|
|
|