Open Bug 684583 Opened 10 years ago Updated 7 years ago

Investigate why number of allocated GC things in almost empty page depend on other pages

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

People

(Reporter: igor, Unassigned)

References

Details

(Keywords: memory-footprint)

Attachments

(1 file)

Attached file test page
Consider the following page (also attached here as a test case):

<script>
var a = 1;
</script>


When I open it in a just started 32-bit browser built on Linux, then open about:memory and press Minimize Memory usage there couple of times I have:

65,536 B (00.20%) -- gc-heap
│  │      │  ├──36,496 B (00.11%) -- arena-unused
│  │      │  ├──15,456 B (00.05%) -- objects
│  │      │  ├──11,800 B (00.04%) -- shapes
│  │      │  ├─────928 B (00.00%) -- type-objects
│  │      │  ├─────344 B (00.00%) -- arena-padding
│  │      │  ├─────256 B (00.00%) -- arena-headers
│  │      │  └─────256 B (00.00%) -- scripts


If instead I first open gmail and then laod that page, I get:


─110,592 B (00.13%) -- gc-heap
│  │     │  ├───47,872 B (00.06%) -- arena-unused
│  │     │  ├───32,680 B (00.04%) -- shapes
│  │     │  ├───27,808 B (00.03%) -- objects
│  │     │  ├────1,152 B (00.00%) -- type-objects
│  │     │  ├──────432 B (00.00%) -- arena-headers
│  │     │  ├──────392 B (00.00%) -- arena-padding
│  │     │  └──────256 B (00.00%) -- scripts


That is, we allocate significantly more live shapes and objects in the page compartment if load it after loading gmail. The question is why?
Assignee: general → nobody
You need to log in before you can comment on or make changes to this bug.