darin%meer.net
cd5ca41c9c
fixes bug 304444 "[W] UMR: Uninitialized memory read in nsDiskCacheEntry::Swap(void) {1 occurrence}" patch by alfredkayser@nl.ibm.com, r=timeless, sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@179447 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-01 00:20:14 +00:00
bryner%brianryner.com
2040b1004d
Change cache interfaces to use ACString for the key. Bug 277627, r+sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@167653 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-13 03:25:28 +00:00
darin%meer.net
39af61b774
Landing initial version of SQL-based disk cache (NOT PART OF THE BUILD)
...
git-svn-id: svn://10.0.0.236/trunk@164080 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-20 05:00:23 +00:00
gerv%gerv.net
586f796c2a
Bug 236613: change to MPL/LGPL/GPL tri-license.
...
git-svn-id: svn://10.0.0.236/trunk@155091 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 22:01:16 +00:00
mkaply%us.ibm.com
4e97ecfcc7
Bug #201455
...
r=bz, sr=darin
Code from Alfred Kayser - optimization of nsCacheEntry
git-svn-id: svn://10.0.0.236/trunk@146777 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-11 16:57:40 +00:00
bryner%brianryner.com
109d623425
Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
...
git-svn-id: svn://10.0.0.236/trunk@146624 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-07 23:12:15 +00:00
darin%netscape.com
e4b5991652
fixes bug 192353 "cache meta data is bloaty" r=gordon sr=alecf
...
git-svn-id: svn://10.0.0.236/trunk@140249 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 15:20:10 +00:00
darin%netscape.com
7f9fc38dbd
landing gordon's patch for bug 81724 - disk cache needs stream wrappers
...
(disk cache phase 3) patch=gordon r=dougt sr=darin
git-svn-id: svn://10.0.0.236/trunk@126569 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 01:13:29 +00:00
dougt%netscape.com
d6cc711878
Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756
...
git-svn-id: svn://10.0.0.236/trunk@121534 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 18:55:21 +00:00
dbaron%fas.harvard.edu
58badaae12
Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
...
git-svn-id: svn://10.0.0.236/trunk@117340 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 21:35:01 +00:00
bzbarsky%mit.edu
f68919f405
Relanding the Compare --> Equals conversion. a=mcafee
...
git-svn-id: svn://10.0.0.236/trunk@114163 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-10 15:49:46 +00:00
bzbarsky%mit.edu
ffecf7f104
Testing performance impact of backout of what's left of the patch from
...
bug 115289. See bug 123947 for details. a=mcafee
git-svn-id: svn://10.0.0.236/trunk@114152 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-09 20:46:05 +00:00
bzbarsky%mit.edu
2fd80b82c9
Convert Compare() to Equals() where possible now that we can do
...
case-insensitive Equals(). Bug 115289, r=alecf, sr=jag
git-svn-id: svn://10.0.0.236/trunk@113665 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 02:03:07 +00:00
gordon%netscape.com
b983639064
fix bug 120833 "default value of nsICacheEntryInfo::expirationTime should be PRUint32(-1)". r=gagan, sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@112640 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 03:06:28 +00:00
alecf%netscape.com
618d9ec8d7
fix for bug 108684 - cache objects not included in bloat logs
...
r=gordon, sr=darin
git-svn-id: svn://10.0.0.236/trunk@107479 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:51:58 +00:00
gordon%netscape.com
4175698458
Fix bug 82009 "purify msg: Freeing mismatched memory". Changing FlattenMetaData() semantics to eliminate malloc and buffer copy. r=beard, sr=darin, a=asa.
...
git-svn-id: svn://10.0.0.236/trunk@97099 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-13 23:37:41 +00:00
danm%netscape.com
f62f90cf24
nsCacheEntry now asks nsCacheService to release its data, and therefore no longer holds a strong ref to its event queue. bugscape bug 4890, bugzilla bug 84247 code=gordon,me r=beard,sfraser a=clayton,chofmann
...
git-svn-id: svn://10.0.0.236/trunk@96483 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-06 02:30:07 +00:00
gordon%netscape.com
97fea23e7d
Fix bug 72507, implementing level 2 disk cache. Modified disk cache to keep
...
metadata for all entries in a single file, rather than in separate files.
r=gagan, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@95463 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 23:24:09 +00:00
darin%netscape.com
b247c6b53d
Http branch landing: changes to netwerk/ (bug 76866) r=gagan,sr=dougt,a=chofmann
...
git-svn-id: svn://10.0.0.236/trunk@94681 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-11 21:04:09 +00:00
gordon%netscape.com
7a7e4f8f3a
Fix bug 79585 "need non-blocking OpenCacheEntry() for HTTP", r=pavlov, sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@94320 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-09 03:36:00 +00:00
gordon%netscape.com
a3fc07f496
Fix for bug 76661, "Recursive attempt to lock cache entry". r=dougt, sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@93760 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-03 02:35:26 +00:00
gordon%netscape.com
e7690cb2a9
For bug 74668. Add cache device ID attribute to nsICacheEntryInfo interface,
...
and implementing classes. r=beard, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@93442 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-30 01:18:34 +00:00
gordon%netscape.com
1a8faed5c8
Approved checking for bug 76372, r=gagan, sr=brendan, a=brendan/chofmann. Added guards against calls to uninitialized nsCacheEntryHashtable.
...
git-svn-id: svn://10.0.0.236/trunk@92982 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-24 02:22:27 +00:00
gordon%netscape.com
1e0c0b4023
Landing DISKCACHE1_BRANCH (part Deux) which enables dynamic eviction and efficient cache miss detection for the disk cache (bug 72506) r=beard, sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@91234 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 03:30:45 +00:00
gordon%netscape.com
86e3302c60
Fix bug 73099. Problems with updating lastModified time stamp. r=beard, sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@90761 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 06:50:38 +00:00
gordon%netscape.com
473ba08356
Land DISKCACHE1_BRANCH, implementing first draft of cache map file for more efficient eviction and cache miss detection. Fixed some problems with overeager setting of lastModified time stamp. Read cache enable prefs on startup. r=beard, sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@90752 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 05:54:58 +00:00
mkaply%us.ibm.com
e324a073a6
#73191
...
r=beard, sr=brendan
Remove CRT_CALL - change to PR_CALLBACK or JS_DLL_CALLBACK appropriately
git-svn-id: svn://10.0.0.236/trunk@90446 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-26 23:21:53 +00:00
mkaply%us.ibm.com
e224862c37
#72075
...
r=jag
OS/2 TB breakage on new cache
git-svn-id: svn://10.0.0.236/trunk@90078 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 04:20:20 +00:00
gordon%netscape.com
7b8581452d
Landing MOZ_NEW_CACHE_20010314_BRANCH, incorporating feedback from recent test builds. New cache is still disabled by default.
...
git-svn-id: svn://10.0.0.236/trunk@89933 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 22:42:03 +00:00
gordon%netscape.com
8d57282cf0
[not part of build]
...
Implement simple LRU eviction mechanism for nsMemoryCacheDevice.
Add cleanup code to nsCacheService to fix intermittent crashes on shutdown.
Calculate MetaData size, and update field in nsCacheEntry.
Begin implmentation of nsICacheDeviceInfo in nsMemoryCacheDevice for about:cache.
Added various statistics to nsCacheService and nsMemoryCacheDevice.
git-svn-id: svn://10.0.0.236/trunk@89508 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 15:43:17 +00:00
dougt%netscape.com
21f01836f0
Minor build changes per API review. Now nsIFileURL and nsIFileChannel have their own IDL file which means that if you were using either of these two interfaces, you need to include a new include file. r=valeski@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@89380 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 22:41:28 +00:00
beard%netscape.com
c988276211
[not part of build] Mark entry dirty when data size is changed.
...
git-svn-id: svn://10.0.0.236/trunk@89350 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 19:29:34 +00:00
beard%netscape.com
d92f6c8af4
[not part of build] Added simple enumeration mechanism to nsCacheEntryHashtable.
...
git-svn-id: svn://10.0.0.236/trunk@89172 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:43:20 +00:00
gordon%netscape.com
95787ca5fb
[not part of build]
...
Removed return codes for nsCacheEntryHashtable::RemoveEntry() and nsCacheDevice::DoomEntry().
Added doomEntriesIfExpired flag to nsCacheSession and nsCacheRequest, and check the flag in nsCacheService::ActivateEntry()
Added lastModified attribute to nsCacheEntryDescriptor and mLastModified data member to nsCacheEntry. mLastModified is updated when data or meta data is changed.
Deque requests if descriptor allocation fails. Delete requests after calling proxy in async open cache entry path.
Cleaned up the logic of doom.
git-svn-id: svn://10.0.0.236/trunk@88929 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 05:37:00 +00:00
gordon%netscape.com
bf68e87589
[not part of build]
...
Added rough cut of pref code for memory cache device to get cache size, and implemented simple eviction method.
Restructured nsCacheEntryDescriptor to add SecurityInfo attribute. Created nsTransportWrapper as nested class (and member) that addrefs the descriptor instead of itself (like nsPipe). Also rename nsCacheOutputStream to nsOutputStreamWrapper and made it a nested class as well.
git-svn-id: svn://10.0.0.236/trunk@88816 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 09:27:36 +00:00
gordon%netscape.com
94bca0664c
[not part of build]
...
Added conditional deletion of mLock and mCondVar to nsCacheRequest destructor.
Added nsCacheServide::NotifyListener() to called cache clients' OnDescriptorAvailable() method for AsyncOpenCacheEntry().
Added ProcessPendingRequests() to process requests on CloseDescriptor, ValidateEntry, and DoomEntry.
Rough cut of AsyncOpenCacheEntry is in place, but needs testing.
git-svn-id: svn://10.0.0.236/trunk@88539 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 10:45:33 +00:00
gordon%netscape.com
0ea21fde31
[not part of build]
...
Restructured open cache entry code in preparation for async implementation, to better share code with synchronous version.
Changed nsCacheRequest, nsCacheEntry, nsCacheEntryDescriptor to inherit from PRCList rather than include mListLink member, and removed extraneous GetListNode/GetInstance methods.
Consolidated mAccessRequested, mStreamBased, and mStoragePolicy into a single PRUint32 in nsCacheRequest. Added PRLock, PRCondVar, and a 'wait for validation' flag, used for synchronously opening cache entries. Added accessor functions for these "attributes".
Record current event queue for asychronous requests to be used with GetProxyForObject(). Removed mRequestThread.
git-svn-id: svn://10.0.0.236/trunk@88535 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 07:17:58 +00:00
gordon%netscape.com
3631c00985
[not part of build] Changed nsCacheEntry data members from PRTime to PRUint32. Changed //** comments to // XXX to make it easier to search for 'to do' items. Added dooming of expired entries.
...
git-svn-id: svn://10.0.0.236/trunk@88499 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-04 00:11:30 +00:00
gordon%netscape.com
036ebd2234
[not part of build] Restructured nsCacheService:ActivateEntry() to properly handle a FORCE-WRITE. Cleaned up ownership of key between request and entry. Add deletion of request for synchronous open. Add deletion of unbound entries on deactivation.
...
git-svn-id: svn://10.0.0.236/trunk@88458 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 02:27:49 +00:00
gordon%netscape.com
e67acee03a
[not part of build] REALLY fix nsCacheEntryHashTable::RemoveEntry. This time for sure!
...
git-svn-id: svn://10.0.0.236/trunk@88419 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 00:00:29 +00:00
gordon%netscape.com
246e6753ae
[not part of build] Fix nsCacheEntryHashTable::RemoveEntry(). r=beard.
...
git-svn-id: svn://10.0.0.236/trunk@88418 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-02 23:50:53 +00:00
beard%netscape.com
9091fd41d7
[not part of build] Added FlattenMetaData()/UnflattenMetaData().
...
git-svn-id: svn://10.0.0.236/trunk@88378 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-02 04:09:01 +00:00
gordon%netscape.com
383d3db210
[not part of build]
...
Fixed cache meta data. Implemented eviction list for memory cache device. Worked on entry deactivation, validation, and doom.
git-svn-id: svn://10.0.0.236/trunk@88364 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-02 01:51:41 +00:00
dougt%netscape.com
8db9510204
not part of build. we should init the cache meta data.
...
git-svn-id: svn://10.0.0.236/trunk@88315 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 21:27:11 +00:00
gordon%netscape.com
a3710877c5
[not part of build]
...
Mark cache entry meta data dirty when key/value pair added.
git-svn-id: svn://10.0.0.236/trunk@88310 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 20:06:16 +00:00
gordon%netscape.com
2169cc19f4
[not part of build]
...
Add finalization code to cache entry hashtables to delete remaining entries.
git-svn-id: svn://10.0.0.236/trunk@88264 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 02:46:12 +00:00
gordon%netscape.com
c08d7ab02c
Fix access mode for new entries. Not part of the build.
...
git-svn-id: svn://10.0.0.236/trunk@88201 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 22:39:07 +00:00
beard%netscape.com
287f2bca71
[not part of build] renamed PRUint32 parameters to nsCacheAccessMode. Set initial descriptor mode to be requested as temporary workaround.
...
git-svn-id: svn://10.0.0.236/trunk@88184 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 11:29:22 +00:00
gordon%netscape.com
5454a1d722
Begin implementing enumeration of MetaData for cache devices.
...
git-svn-id: svn://10.0.0.236/trunk@88181 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 07:13:32 +00:00
darin%netscape.com
a96a6eabef
Removed an extraneous QI from nsCacheEntry::Open()
...
git-svn-id: svn://10.0.0.236/trunk@88171 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:28:15 +00:00