Closed Bug 63014 Opened 24 years ago Closed 24 years ago

[static ctor]static constructors in nsHTMLTokenizer.cpp

Categories

(Core :: DOM: HTML Parser, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla0.8

People

(Reporter: dbaron, Assigned: dbaron)

References

Details

(Keywords: topembed+)

Attachments

(2 files)

DESCRIPTION:  There are static constructors used in nsHTMLTokenizer.cpp.  One of
them is in code that's no longer used since vidur's string changes, and the
other is the static object returned by GetTempStack.  I found that GetTempStack
is called under 5 times for a typical small page load, around 10 times for a
typical complex page (http://www.cnn.com/), around 30 times for the bugzilla
query page, and a bit more for very very long pages.  That doesn't seem to be
enough to justify using static constructors, which are against the C++
portability guidelines http://www.mozilla.org/hacking/portable-cpp.html , cause
objects to show up as a leak, and prevent us from running on OpenBSD (bug
49575), and prevents us from doing module unloading (see bug 60709).
Status: NEW → ASSIGNED
OS: Linux → All
Priority: -- → P3
Hardware: PC → All
Target Milestone: --- → mozilla0.8
r=harishd
sr=waterson on both patches.
Fix checked in 2001-01-09 20:04 PST.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
updated qa contact.
QA Contact: janc → bsharma
Marking it verified as per above developer comments.
Status: RESOLVED → VERIFIED
Keywords: topembed+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: