Closed Bug 369099 Opened 18 years ago Closed 18 years ago

[FIX]Static CellDataArray causes leak stat problems

Categories

(Core :: Layout: Tables, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: benjamin, Assigned: bzbarsky)

References

()

Details

Attachments

(2 files, 1 obsolete file)

Spun off from bug 362318 comment 5 and 6: the static CellDataArray means that we get an assertion (because static data with initializers is bad), and could theoretically cause crashes on mac if layout got unloaded after XPCOM (which apparently sometimes does happen in real life). Solution, initialize/destroy the structure in module ctor/dtor.
No longer blocks: 362318
Depends on: 362318
Attached patch Fix (obsolete) — Splinter Review
Attachment #253837 - Flags: superreview?(benjamin)
Attachment #253837 - Flags: review?(bernd_mozilla)
Summary: Static CellDataArray causes leak stat problems → [FIX]Static CellDataArray causes leak stat problems
Target Milestone: --- → mozilla1.9alpha
Boris, why don't you put it inside the cellmap ctor/dtor but the module ctor/dtor. Are you afraid of the memory consumption? The first would cause less intermodule dependencies or is there more that I don't know?
This is a single array shared by all cellmaps... And I want to handle OOM allocating it. That wouldn't really work in the cellmap ctor, no?
Attachment #253837 - Flags: review?(bernd_mozilla) → review+
Attachment #253837 - Flags: superreview?(benjamin) → superreview?(roc)
Attachment #253837 - Flags: superreview?(roc) → superreview+
Attached patch Updated to tipSplinter Review
Attachment #253837 - Attachment is obsolete: true
Fixed.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Depends on: 370506
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: