If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

native class finalize function not called in some cases

NEW
Unassigned

Status

()

Core
JavaScript Engine
--
major
8 years ago
3 years ago

People

(Reporter: Franck, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

1.23 KB, text/plain
Details
(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Build Identifier: trunk (tracemonkey-de30e660f263)

None of my native finalize function (JSFinalizeOp) get called after I run the following JavaScript code:

  var b = new Array();
  for ( var i = 0; i < 2; i++ )
    b.pop;
  Print('Done.\n');

If the loop runs only one time (for 0 to 1), the problem does not appear any more.


Reproducible: Always
(Reporter)

Comment 1

8 years ago
Created attachment 402347 [details]
testcase
The custom global object is leaking for some reason todo with the JIT.

/be
Status: UNCONFIRMED → NEW
Ever confirmed: true
(Reporter)

Comment 3

8 years ago
note: if the script is run using JS_EvaluateScript instead of JS_CompileScript + JS_ExecuteScript, everything works fine.
(Assignee)

Updated

3 years ago
Assignee: general → nobody
You need to log in before you can comment on or make changes to this bug.