Граф коммитов

64 Коммитов

Автор SHA1 Сообщение Дата
Taras Glek f53f4d4322 Bug 537158: Make fastload more robust r=brendan 2009-12-29 14:04:38 -08:00
Ginn Chen 9bb07a9db1 Bug 526176 use madvise on Solaris for fastload r=brendan 2009-11-10 18:23:53 +08:00
Taras Glek 3ee5c41dde Bug 524313: crash [@ RaiseException ] nsFastLoadFileReader::ReadFooter r=brendan
--HG--
extra : rebase_source : d9f2f41d0c2dfc0e7a2d90c97789e66a38c3f43f
2009-10-26 12:35:12 -07:00
Taras Glek dcdc7a14e5 Bug 522141: Don't crash on fasl close
--HG--
extra : rebase_source : ec9a5bf70b7b6acc2b9c16dca8d33da277278ac1
2009-10-16 17:17:55 -07:00
bhsieh@mozilla.com e1ceff4347 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 95d5af415a Bug 522141 - FastLoadFileReader fails to close if an error occurs during opening r=brendan
--HG--
extra : rebase_source : 8fc163f6f29fca4155195f6df63f58bffa635f6d
2009-10-15 11:20:39 -07:00
Paul O’Shannessy 5703d590b2 Backed out changeset 89f53914ecd9 (bug 511761) 2009-10-14 12:41:03 -07:00
bhsieh@mozilla.com 98a3f13ee0 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 76fd543756 bug 412796: typos in earlier commit. r=brendan
--HG--
extra : rebase_source : 43492f71b96213f56166dc87cf128612ee670bc1
2009-10-12 11:56:37 -07:00
Taras Glek 0192baad2a Bug 412796: Optimize fastload system (mmap fileIO) r=brendan
--HG--
extra : rebase_source : 425e1c4254b8e5c7c3b9fc98efb91c06805d1f02
2009-10-08 10:30:21 -07:00
Brendan Eich 155f11db8f Fix indentation. 2009-09-21 16:44:35 -07:00
Arpad Borsos c72ef7d248 Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan 2008-10-10 17:04:34 +02:00
reed@reedloden.com d545086c33 Bug 411579 - "Optimize read file buffer sizes for faster startup times" [p=jmathies@mozilla.com (Jim Mathies) r=sayrer sr=bsmedberg a1.9=beltzner] 2008-04-01 23:41:23 -07:00
dietrich@mozilla.com 69ea3dfd0b Bug 421943 ? "redundant multiplexed document" should be a warning not assertion (r=sayre, sr+a=shaver) 2008-03-12 09:28:45 -07:00
reed@reedloden.com 82f3afa0ed Back out jimm's patch from bug 411579 due to regressions. [a1.9b3=mconnor] 2008-01-30 15:39:42 -08:00
reed@reedloden.com 17dee2a4d9 Bug 411579 - "Optimize read file buffer sizes for faster startup times" [p=jmathies@mozilla.com (Jim Mathies) r=sayrer sr=bsmedberg a=blocking1.9+] 2008-01-29 12:51:46 -08:00
reed@reedloden.com f015d06d01 Back out patch from bug 411579, as there may be a Ts perf regression. 2008-01-18 02:36:40 -08:00
reed@reedloden.com cd2af3de01 Bug 411579 - "Optimize read file buffer sizes for faster startup times" [p=jmathies@mozilla.com (Jim Mathies) r=sayrer sr=bsmedberg a=blocking1.9+] 2008-01-18 01:08:09 -08:00
bzbarsky@mit.edu 8aa7809421 Make fastload handle short reads from its underlying buffered stream. Bug
387588, r+sr=biesi
2007-07-17 18:54:55 -07:00
jwalden@mit.edu 6d7584839a 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
dbaron@dbaron.org d98d9fdec5 Remove unused getKey callback from PLDHashTableOps/JSDHashTableOps. b=374906 r=bsmedberg 2007-03-27 08:33:38 -07:00
brendan%mozilla.org ee6d5a0d06 Fix from alfred.peng@sun.com for a bug hiding out from over four years ago (341595, r=me). 2006-08-03 22:07:03 +00:00
brendan%mozilla.org 6ec73b11fa Back out last commit to try to turn Balsa green. 2006-08-01 23:33:24 +00:00
brendan%mozilla.org a500820740 Fix from alfred.peng@sun.com 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
benjamin%smedbergs.us 8826418990 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
dbaron%dbaron.org 04b8c33eda 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
bryner%brianryner.com 4cd1e2b280 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
bryner%brianryner.com 5c7b9a7466 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
dbaron%dbaron.org 1a43dc79c0 Fix misspellings of 'pseudo' in comments. Bug 106386. Patch by Alex Vincent <ajvincent@gmail.com>. r=timeless sr=peterv 2004-12-19 21:45:51 +00:00
dbaron%dbaron.org 888fe0c640 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
dbaron%dbaron.org 9643fc6c04 Back out 252703 due to Txul / Ts regression. 2004-12-02 01:26:20 +00:00
dbaron%dbaron.org 21dccaeace 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
brendan%mozilla.org bb8a0ca1ee Track Seek/Tell 32=>64-bit API change in DEBUG_MUX ifdefs. 2004-05-04 22:52:46 +00:00
gerv%gerv.net 31625ba2b1 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
brendan%mozilla.org 85b983ea03 Restore some lost empty lines, use number-line order in range-check asserts. 2004-04-13 23:17:18 +00:00
bienvenu%nventure.com 9e210e5568 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
brendan%mozilla.org b7cdb7debb 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
brendan%mozilla.org 32fe82e60e Fold premature entry decl initialized by gratuitous ?: expr into dependent if/else in nsFastLoadFileReader::ReadObject. 2003-06-04 06:08:15 +00:00
brendan%mozilla.org e81a02eeb2 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
alecf%netscape.com 6c75920da1 fix for bug 195298 - pldhash ops tables should be const.. r=dougt, sr=sfraser 2003-04-04 15:10:37 +00:00
brendan%mozilla.org 04624a2df0 - 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
jrgm%netscape.com 2f7102abeb 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
brendan%mozilla.org b8d97d8b8c 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
alecf%netscape.com df10f648b8 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
alecf%netscape.com 0a48c10053 argh, back out my last checkin because Ts went UP not down! 2002-11-09 01:31:32 +00:00
alecf%netscape.com 4721428275 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
darin%netscape.com 6fd5862e6e fixes bug 142870 "nsIFile should use UCS-2 instead of UTF-8"
r=dougt sr=alecf
2002-05-07 23:07:19 +00:00
ben%netscape.com bdd1b4d691 [Chrome FastLoad]
Patch to make FastLoad Service return the previous URI selected when selecting a new one, as well as fixing a few issues relating to dependencies on non-existent files. Patch from brendan, r=dbaron, sr=waterson
2002-05-03 02:59:42 +00:00
darin%netscape.com e554d83626 fixes bug 129279 "nsIFile unicode/utf8/ascii task"
r=dougt sr=alecf
2002-04-27 05:33:09 +00:00
timeless%mac.com 51a4520c4a Bugzilla Bug 107823 change nsIFile
to use 'Modified' instead of 'Modification'
r=akkana sr=brendan
2001-11-26 08:05:05 +00:00