Closed Bug 384435 Opened 17 years ago Closed 12 years ago

E4X: filtering with .() consumes a lot memory

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: marckrb, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Build Identifier: 1.8 Branch

When filters are used intensively, the process consumes a lot memory
and the interpreter ends up with an 'out of memory' error.

Here is an example:

var x = <xml>
  <e id="1"/>
  <e id="2"/>
</xml>
for(var i=0; i<10000000; i++)
  x.e.(@id=="1")

When run in js shell, it consumes all the available memory (I've stopped it at 800Mb).


Reproducible: Always
Blocks: e4x
Version: unspecified → Trunk
E4X will be removed again from Spidermonkey (bug 788293)
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.