Commit Graph
67 Commits
Author SHA1 Message Date
L. David Baron 4b9262bf2d Backout changeset 9ddbf8ab23a5 (bug 588873) to see if it caused bug 617048. 2010-12-08 14:38:26 -08:00
Taras Glek f3d79752de Bug 588873 - Crashfix, catch EXCEPTION_IN_PAGE_ERROR, use file io for checksum on Windows for more safety+speed r=benh a=blocking-betaN 2010-12-03 10:16:10 -08:00
Taras Glek 0674e7d0f0 Bug 596429 - Firefox 4.0b5 Crash Report nsFastLoadFileWriter::Open() r=benedict a=2.0 2010-09-16 13:22:40 -07:00
Taras Glek 4602e0ba4b Bug 537158: Make fastload more robust r=brendan 2009-12-29 14:04:38 -08:00
Ginn Chen 176398bf2f Bug 526176 use madvise on Solaris for fastload r=brendan 2009-11-10 18:23:53 +08:00
Taras Glek 22c2e4be33 Bug 524313: crash [@ RaiseException ] nsFastLoadFileReader::ReadFooter r=brendan 2009-10-26 12:35:12 -07:00
Taras Glek f4eac608d8 Bug 522141: Don't crash on fasl close 2009-10-16 17:17:55 -07:00
2bb24ef9c1 Bug 511761 - Only use compatibility.ini (not .autoreg, or stat()s) to invalidate fastloads and other caches (r=bsmedberg, RELAND WITH TEST FIX) 2009-10-15 23:32:29 -07:00
Taras Glek 9da6058ffb Bug 522141 - FastLoadFileReader fails to close if an error occurs during opening r=brendan 2009-10-15 11:20:39 -07:00
Paul O’Shannessy f9e169365a Backed out changeset 89f53914ecd9 (bug 511761) 2009-10-14 12:41:03 -07:00
23bc2ce6ad Bug 511761 - Only use compatibility.ini (not .autoreg, or stat()s) to invalidate fastloads and other caches (r=bsmedberg) 2009-10-14 09:40:45 -07:00
Taras Glek aa5c7c1597 bug 412796: typos in earlier commit. r=brendan 2009-10-12 11:56:37 -07:00
Taras Glek 7fdc16dc38 Bug 412796: Optimize fastload system (mmap fileIO) r=brendan 2009-10-08 10:30:21 -07:00
Brendan Eich 930b3bcd39 Fix indentation. 2009-09-21 16:44:35 -07:00
Arpad Borsos 1b55360c07 Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan 2008-10-10 17:04:34 +02:00
a368b4508b Bug 411579 - "Optimize read file buffer sizes for faster startup times" [[email protected] (Jim Mathies) r=sayrer sr=bsmedberg a1.9=beltzner] 2008-04-01 23:41:23 -07:00
c8cc56664f Bug 421943 ? "redundant multiplexed document" should be a warning not assertion (r=sayre, sr+a=shaver) 2008-03-12 09:28:45 -07:00
7c4e538ea9 Back out jimm's patch from bug 411579 due to regressions. [a1.9b3=mconnor] 2008-01-30 15:39:42 -08:00
e614017899 Bug 411579 - "Optimize read file buffer sizes for faster startup times" [[email protected] (Jim Mathies) r=sayrer sr=bsmedberg a=blocking1.9+] 2008-01-29 12:51:46 -08:00
a3091e588d Back out patch from bug 411579, as there may be a Ts perf regression. 2008-01-18 02:36:40 -08:00
9f2e5996f7 Bug 411579 - "Optimize read file buffer sizes for faster startup times" [[email protected] (Jim Mathies) r=sayrer sr=bsmedberg a=blocking1.9+] 2008-01-18 01:08:09 -08:00
e4e4eee106 Make fastload handle short reads from its underlying buffered stream. Bug
387588, r+sr=biesi
2007-07-17 18:54:55 -07:00
98de634631 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
0f08b75950 Remove unused getKey callback from PLDHashTableOps/JSDHashTableOps. b=374906 r=bsmedberg 2007-03-27 08:33:38 -07:00
[email protected] 04f996dd78 Fix from [email protected] for a bug hiding out from over four years ago (341595, r=me). 2006-08-03 22:07:03 +00:00
[email protected] f57dc4b8ef Back out last commit to try to turn Balsa green. 2006-08-01 23:33:24 +00:00
[email protected] 06a692b492 Fix from [email protected] for old seek-on-selected-stream-without-mBytesLeft-update bug, plus assertions and a null store for stronger consistency (341595, r=me for Alfred's parts, and vice versa). 2006-08-01 20:14:33 +00:00
[email protected] c2c4311df0 Bug 305949 - Fix various XPCOM macros in preparation for stopping exporting nonfrozen XPCOM functions, r=darin sr=bryner 2006-04-19 16:29:31 +00:00
[email protected] 96634178f2 Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky 2006-04-05 00:00:44 +00:00
[email protected] 1aeb69f877 Remove dependency on nsIClassInfo.h from nsISupports.h (bug 330420). This adds a new nsIClassInfoImpl.h file which can be included to get the CI implementation macros. Also, removes unneeded inclusion of nsIProgrammingLanguage.h from nsIClassInfo.h. r=darin. 2006-03-15 04:59:42 +00:00
[email protected] ba3220131f Keep an interface pointer to the nsISeekableStream in nsFastLoadFileReader/Writer/Updater to avoid repeated QI (bug 313575). r+sr=brendan. 2005-10-24 18:02:00 +00:00
[email protected] 2e5409d68e Fix misspellings of 'pseudo' in comments. Bug 106386. Patch by Alex Vincent <[email protected]>. r=timeless sr=peterv 2004-12-19 21:45:51 +00:00
[email protected] bf35227689 Add assertions where they help implementors of nsISerializable, and remove a bogus one. b=252703 r=darin sr=bzbarsky 2004-12-02 06:58:06 +00:00
[email protected] 4befe732c5 Back out 252703 due to Txul / Ts regression. 2004-12-02 01:26:20 +00:00
[email protected] 625f0cd8c4 Fix theme switching bugs related to insufficient change handling when entry points to themes are stylesheet links (processing instructions or XBL stylesheet elements) or xul:image src attributes by giving the chrome: protocol its own URL implementation that remembers the URL to which the chrome: URL was resolved and uses that resolved URL as part of equality testing. Fix various fastload issues arising from this change. b=252703 r=darin sr=bzbarsky 2004-12-01 22:39:17 +00:00
[email protected] 0a98dda960 Track Seek/Tell 32=>64-bit API change in DEBUG_MUX ifdefs. 2004-05-04 22:52:46 +00:00
[email protected] c0cd46fc51 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
[email protected] 8d01a9d53e Restore some lost empty lines, use number-line order in range-check asserts. 2004-04-13 23:17:18 +00:00
[email protected] 021e530d27 make nsISeekableStream interface support 64 bit streams, part of 180154 also fix 207400 allow mail folders > 2GB r=darin, sr=mscott 2004-04-13 14:37:53 +00:00
[email protected] 365c98466c Add shared DHashTableOps for [const] char *key use-cases, clean up dhash API abusages (214839, r=dougt, sr=dbaron). 2003-08-05 20:09:21 +00:00
[email protected] ae5bf0b6d9 Fold premature entry decl initialized by gratuitous ?: expr into dependent if/else in nsFastLoadFileReader::ReadObject. 2003-06-04 06:08:15 +00:00
[email protected] cc5e3976d1 Reduce seeks outside the FastLoad file's underlying stream buffer (195010,
r=ben, sr=bryner).

- Pass null scope objects into nsIScriptContext::Compile{EventHandler,Script}
when precompiling for brutal sharing.  The JS engine does not need a non-null
object parameter for static scope.  That parameter can be non-null only if it
helps the compiler "pre-bind" functions to the same scope object that they'll
be parented by when executing, but with brutal sharing, functions are
precompiled once and executed against many different scope objects.

- A problem in XUL FastLoad was that it would serialize master .xul document
out-of-line scripts (those included via script src= from non-overlay, "master"
.xul docs) far from the place in the FastLoad file where XUL prototype script
info was serialized for the <script src=> tag itself.  I fixed that so that,
unless the out-of-line script was previously serialized (by a different src=
reference from another .xul file), the OOL script data immediately follows the
proto-script info in the FastLoad file.

This required adding a SerializeOutOfLine method to nsXULPrototypeScript, which
restores symmetry by matching the existing DeserializeOutOfLine(Script) (note:
I dropped the redundant "Script" from the end of the latter method's name.  We
need SerializeOutOfLine to handle overlay OOL scripts.	They are serialized by
nsXULDocument::OnStreamComplete, because that code knows the difference between
an overlay and a master doc.  This removes all trace of FastLoad writing from
nsXULPrototypeScript::Compile -- FastLoad stuff didn't belong there, not only
because we now want to write master OOL scripts later, when walking the master
XUL prototype doc's element tree, but also for modularity reasons.  The caller
knows about FastLoad, nsXULPrototypeScript::Compile does just what its name
implies.

There are 132 seeks with the patch, only 49 of which dump the underlying file
stream's buffer, vs. 133 seeks without the patch, 87 of which dump the buffer.

- Nit-picked some comments to fit in 80 columns, and made other cosmetic fixes.

- Implicated the nsXULDocument::mIsWritingFastLoad flag from the useXULCache
"is the XUL cache enabled?" flag, so other places that test mIsWritingFastLoad
don't have to query whether the cache is enabled.

- Added METERING synchronous meter-dumping to /tmp/bufstats, only ifdef
DEBUG_brendan, in netwerk/base/src/nsBufferedStreams.cpp.

- Added the deferred seek optimization from the first patch in bug 195010 to
nsFastLoadFile.cpp.

- Fixed nsFastLoadFileReader so it overrides readSegments as well as read.
This catches up with the interface extension made to nsIInputStream to add
readSegments.  The nsFastLoadFileReader extends nsBinaryInputStream, which is
a concrete class, and overrides Read in order to snoop on *all* bytes read.
It does this in order to demultiplex documents interleaved when the FastLoad
file was written.

But since the readSegments move into nsIInputStream.idl, certain primitives
in nsBinaryStream.cpp, e.g., nsBinaryInputStream::ReadCString, have used
ReadSegments, not Read, to consume parts of the underlying stream (to read
the C string's chars, in that example), and the FastLoad file implementation
has not accounted for those bytes.

- Added a new method to nsIFastLoadFileControl and its impls: hasMuxedDocument.
 This is needed when serializing master XUL doc OOL scripts, because we must
not serialize twice, and any OOL script that other XUL docs can include via
script src= could already be in the FastLoad mux.

/be
2003-04-12 01:34:11 +00:00
[email protected] 80b5831587 fix for bug 195298 - pldhash ops tables should be const.. r=dougt, sr=sfraser 2003-04-04 15:10:37 +00:00
[email protected] 937628cdab - Turn jrgm's helpful assert/defend changes into assertions that mCIDOffset
is never 0, and make the memset-to-zero required for these assertions be
  #ifdef NS_DEBUG.
- Extend FastLoad file format to encode a singleton flag in the high bit of
  nsFastLoadSharpObjectInfo.mWeakRefCnt.  The updater code needs to test this
  bit in order to deserialize a singleton that was not read by the updater's
  reader during this FastLoad episode.  Otherwise the updater is likely to
  reserialize the singleton, leading to multiple entries in the object map
  for the same object, and UMRs when loading from the writer's object map
  enumeration (objvec) in nsFastLoadFileWriter::WriteFooter.
- Remove bogus assertion that worked only when an XPCOM data structure being
  serialized was still alive at the time the writer closed.  In general, there
  is no relationship between the strong ref-counts in a FastLoad file and the
  XPCOM refcnts in memory at close time.
- Bug 189832, r=jrgm, sr=ben, a=dbaron.
2003-02-16 17:40:16 +00:00
[email protected] 1ce121b468 Guard against bogus entries in the object map of the fastload file, bug 189832, r=ben/jag, sr=jst, a=asa 2003-01-31 01:34:45 +00:00
[email protected] 1b5cdfa6e5 Defend against bad EndMuxedDocument calls, and assert in the underlying {JS,PL}_DHashTableRawRemove that entry is live (188744, r=jrgm, sr=ben). 2003-01-17 10:01:50 +00:00
[email protected] 3526ba22e3 take two at fixing bug 177401 - convert nsIBinaryStream over to using nsAString/nsACString for string values, to speed up fastload
sr=darin, r=dougt
(the previous checkin had a typo which disabled fastload entirely!)
2002-11-14 18:16:31 +00:00
[email protected] 2c98274d76 argh, back out my last checkin because Ts went UP not down! 2002-11-09 01:31:32 +00:00
[email protected] 7f928a0114 fix for bug 177401 - use nsAString& classes instead of wstring in nsIBinaryInputStream, to speed up fastload startup
sr=darin, r=dougt
2002-11-08 23:30:53 +00:00
[email protected] 09c17695e3 fixes bug 142870 "nsIFile should use UCS-2 instead of UTF-8"
r=dougt sr=alecf
2002-05-07 23:07:19 +00:00