Closed Bug 518314 Opened 15 years ago Closed 2 years ago

native class finalize function not called in some cases

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: soubok, Unassigned)

Details

Attachments

(1 file)

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
Attached file testcase
The custom global object is leaking for some reason todo with the JIT.

/be
Status: UNCONFIRMED → NEW
Ever confirmed: true
note: if the script is run using JS_EvaluateScript instead of JS_CompileScript + JS_ExecuteScript, everything works fine.
Assignee: general → nobody

Hey Franck,
Can you still reproduce this or should we close it?

Flags: needinfo?(soubok)

Redirect a needinfo that is pending on an inactive user to the triage owner.
:sdetar, since the bug has high severity, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(soubok) → needinfo?(sdetar)
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(sdetar)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: