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
26f1643527
Fix for bug 78479 "frequent hang on quit after long use" and bug 79241 "Crash quiting the app in the cache". sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@94171 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 00:13:21 +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
bnesse%netscape.com
ee257ebfab
Prefs API refactoring. Bug #46863 . r=valeski, sr=alecf.
...
git-svn-id: svn://10.0.0.236/trunk@93158 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-26 18:41:11 +00:00
gordon%netscape.com
417e742581
checkin for bug 76293. Moves cache directory aside on startup if disk cache is unable to read or delete files. Cache service disables disk cache device if it fails to initialize, and defaults to using memory cache instead. r=beard, sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@93110 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-26 05:07:28 +00:00
gordon%netscape.com
e42611a0e1
Approved checkin for bug 76125, cleanup usage of pldhashtable in nsCacheService.cpp. r=gagan, sr=brendan, a=asa.
...
git-svn-id: svn://10.0.0.236/trunk@92918 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-23 05:15:03 +00:00
bryner%uiuc.edu
607c3ab676
Backing out bnesse's fix for bug 46863 due to numerous types of runtime bustage on linux and windows. a=brendan.
...
git-svn-id: svn://10.0.0.236/trunk@92818 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-20 06:45:56 +00:00
bnesse%netscape.com
e8c7f4a0a7
Landing PrefAPI refactoring bug 46863. r=valeski, sr=alecf, a=blizzard.
...
git-svn-id: svn://10.0.0.236/trunk@92761 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 22:21:39 +00:00
gordon%netscape.com
7f9f297b86
Fix bug 75171 "implement nsCacheSession::EvictEntries", sr = darin.
...
git-svn-id: svn://10.0.0.236/trunk@91734 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-09 08:14:08 +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
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
pavlov%netscape.com
892c7ce230
fix for windows crash on profile startup, initalize disk cache lazily. bug 73197. r=beard, gordon sr=sfraser
...
git-svn-id: svn://10.0.0.236/trunk@90272 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 21:06:39 +00:00
mkaply%us.ibm.com
a29632f207
Stupid mistake - used CRT_CALLBACK instead of CRT_CALL
...
git-svn-id: svn://10.0.0.236/trunk@90086 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 05:23:37 +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
darin%netscape.com
2526d0229b
Fixes speedracer bustage. a=mcafee
...
git-svn-id: svn://10.0.0.236/trunk@90061 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 02:25:36 +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
beard%netscape.com
0cea9abfef
[not part of build] Use nsIObserverService to shut down cache before XPCOM is shut down. r=gordon
...
git-svn-id: svn://10.0.0.236/trunk@89420 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 01:59:43 +00:00
beard%netscape.com
ee5b3ba301
[not part of build] renamed DoomEntry_Internal to DoomEntry_Locked, made public for use by cache devices.
...
git-svn-id: svn://10.0.0.236/trunk@89170 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 00:42:19 +00:00
beard%netscape.com
1c5610f321
[not part of build] Implemented nsCacheEntryDescriptor::GetFile().
...
git-svn-id: svn://10.0.0.236/trunk@88984 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 21:22:18 +00:00
beard%netscape.com
d2a908e357
[not part of build] implement VisitEntries.
...
git-svn-id: svn://10.0.0.236/trunk@88982 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 20:58:38 +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
9250bb844b
[not part of build] Fix a couple bugs to get http working. Don't deallocate requests before listener has been notified, and don't re-add entries to active entry hashtable.
...
git-svn-id: svn://10.0.0.236/trunk@88874 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 01:02:27 +00:00
beard%netscape.com
aced59b313
[not part of build] don't overwrite a NULL pointer.
...
git-svn-id: svn://10.0.0.236/trunk@88787 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-07 04:05:36 +00:00
darin%netscape.com
5bf29d7b78
[not part of the buid] Renamed onDescriptorAvailable to onCacheEntryAvailable.
...
git-svn-id: svn://10.0.0.236/trunk@88699 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 22:04:05 +00:00
gordon%netscape.com
3764094d6d
[not part of build...and a good thing too] Fixed a couple of really stupid mistakes. Thanks to Patrick for finding them. Go back to your homes. Nothing to see here.
...
git-svn-id: svn://10.0.0.236/trunk@88632 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 04:01:00 +00:00
gordon%netscape.com
057243bb88
[not part of build]
...
Fix race condition in nsCacheRequest WaitForValidation().
Force !streamBased to set storagePolicy to nsICache:STORE_IN_MEMORY when creating nsCacheSessions.
Fix ProcessRequest() to refrain from creating a descriptor for ACCESS_READ requests when no entry is found (found by pavlov).
git-svn-id: svn://10.0.0.236/trunk@88626 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 03:26:13 +00:00
darin%netscape.com
a3e03c5eaf
[not part of the build] Prevent crash in error case.
...
git-svn-id: svn://10.0.0.236/trunk@88623 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 03:12:24 +00:00
darin%netscape.com
2685a2a7cc
[not part of the build] Fixes sync OpenCacheEntry bustage.
...
git-svn-id: svn://10.0.0.236/trunk@88601 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 01:40:20 +00:00
darin%netscape.com
c3e8536f42
[not part of the bulid] Fixes GCC 2.95 bustage.
...
git-svn-id: svn://10.0.0.236/trunk@88583 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-05 23:50:26 +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
9618aa2ef4
[not part of build] Make MarkDoomed(), MarkActive(), MarkInactive() private, and check for entry before calling MarkInitialized() in nsCacheService::ActivateEntry().
...
git-svn-id: svn://10.0.0.236/trunk@88476 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 04:42:21 +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
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
gordon%netscape.com
9bbc213f93
[not part of build]
...
Changed OnDataSizeChanged() to OnDataSizeChange() and added a deltaSize parameter. Added OnDataSizeChange() method on nsCacheService so we can grab the service lock and bind the entry if necessary.
Commented out the implementation of nsCacheEntryDescriptor::AsyncWrite(), since we are not planning to provide it.
git-svn-id: svn://10.0.0.236/trunk@88275 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 05:01:43 +00:00
beard%netscape.com
ff1dfa18a0
[not part of build] enforce nsCacheAccessMode when creating transports.
...
git-svn-id: svn://10.0.0.236/trunk@88183 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 10:04:27 +00:00
darin%netscape.com
5609d90e44
Completed nsCacheService::BindEntry
...
git-svn-id: svn://10.0.0.236/trunk@88172 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:34:41 +00:00
gordon%netscape.com
19a0033de2
Added GetTransportForEntry(), DoomEntry() to public methods, and BindEntry() and DoomEntry_Internal() to private methods.
...
git-svn-id: svn://10.0.0.236/trunk@88167 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:10:43 +00:00
beard%netscape.com
c269fc2228
[not part of build] allocate the nsDiskCacheDevice.
...
git-svn-id: svn://10.0.0.236/trunk@88139 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 00:36:07 +00:00
gordon%netscape.com
8b61a442bc
Changed GetKey() to return key as return value, rather than out parameter. Added flag predicates for storage policy.
...
git-svn-id: svn://10.0.0.236/trunk@88063 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 05:35:53 +00:00
beard%netscape.com
d908473d6c
[not part of build] I changed all the declaration of all PRInt32 storagePolicy variables to nsCacheStoragePolicy.
...
git-svn-id: svn://10.0.0.236/trunk@87994 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-26 15:53:31 +00:00
gordon%netscape.com
e1904579fd
Updated methods for addition of nsCacheSession.
...
git-svn-id: svn://10.0.0.236/trunk@87984 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-26 14:55:58 +00:00
beard%netscape.com
3dbc04b8e1
[not part of build] changes to build correctly on Mac, and link correctly on all platforms.
...
git-svn-id: svn://10.0.0.236/trunk@87881 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 04:22:19 +00:00
gordon%netscape.com
c1cbcd4c4c
Updated new cache source to build with recent changes to interface files. These files are not part of the build. r=beard, darin.
...
git-svn-id: svn://10.0.0.236/trunk@87862 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 01:02:37 +00:00
gordon%netscape.com
cfbd099fb3
Rough first cut of cache service and memory object cache. It currently builds on linux.
...
git-svn-id: svn://10.0.0.236/trunk@87809 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-23 13:18:01 +00:00