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)
Core
DOM: HTML Parser
Tracking
()
VERIFIED
FIXED
mozilla0.8
People
(Reporter: dbaron, Assigned: dbaron)
References
Details
(Keywords: topembed+)
Attachments
(2 files)
1.18 KB,
patch
|
Details | Diff | Splinter Review | |
773 bytes,
patch
|
Details | Diff | Splinter Review |
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).
Assignee | ||
Comment 1•24 years ago
|
||
Assignee | ||
Comment 2•24 years ago
|
||
Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
OS: Linux → All
Priority: -- → P3
Hardware: PC → All
Target Milestone: --- → mozilla0.8
Comment 4•24 years ago
|
||
sr=waterson on both patches.
Assignee | ||
Comment 5•24 years ago
|
||
Fix checked in 2001-01-09 20:04 PST.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Marking it verified as per above developer comments.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•