Closed
Bug 419036
Opened 16 years ago
Closed 16 years ago
Simplify nsCacheEntryHashTable::VisitEntries and break 'friendship'
Categories
(Core :: Networking: Cache, defect)
Core
Networking: Cache
Tracking
()
VERIFIED
FIXED
mozilla1.9beta5
People
(Reporter: alfredkayser, Assigned: alfredkayser)
References
Details
Attachments
(1 file, 2 obsolete files)
6.85 KB,
patch
|
dcamp
:
review+
Biesinger
:
superreview+
damons
:
approval1.9+
|
Details | Diff | Splinter Review |
Make the VisitEntries method accept a normal 'PLDHashEnumerator' as callback function, so that: 1. this callback can also return PL_DHASH_REMOVE (this is needed for my patch for nsMemoryCacheDevice). 2. no class structure is needed to use this method 3. the friendship between nsCacheEntryHashTable and nsCacheService can be removed
Attachment #304980 -
Flags: review?(dcamp)
Assignee | ||
Comment 1•16 years ago
|
||
Attachment #304980 -
Attachment is obsolete: true
Attachment #304982 -
Flags: review?(dcamp)
Attachment #304980 -
Flags: review?(dcamp)
Assignee | ||
Updated•16 years ago
|
Assignee: nobody → alfredkayser
Comment 2•16 years ago
|
||
Don't you also need to update nsMemoryCacheDevice::CheckEntryCount() ?
Assignee | ||
Comment 3•16 years ago
|
||
Attachment #304982 -
Attachment is obsolete: true
Attachment #305187 -
Flags: review?(dcamp)
Attachment #304982 -
Flags: review?(dcamp)
Updated•16 years ago
|
Attachment #305187 -
Flags: superreview?(cbiesinger)
Attachment #305187 -
Flags: review?(dcamp)
Attachment #305187 -
Flags: review+
Updated•16 years ago
|
Version: unspecified → Trunk
Assignee | ||
Comment 4•16 years ago
|
||
Can we have this in 1.9? Simple code cleanup, that makes things easier for more optimizations in the cache.
Status: NEW → ASSIGNED
Flags: wanted1.9.0.x?
Comment 5•16 years ago
|
||
Comment on attachment 305187 [details] [diff] [review] V3: Also do the debug code in nsMemoryCacheDevice + PRInt32 *entryCount = (PRInt32 *)arg; .. + PRInt32 entryCount = 0; shouldn't that be a PRUint32?
Attachment #305187 -
Flags: superreview?(cbiesinger) → superreview+
Assignee | ||
Comment 6•16 years ago
|
||
Re comment #5: mEntryCount is also a PRInt32 (which is also not precisely right), but I preferred to keep it the same.
Assignee | ||
Updated•16 years ago
|
Attachment #305187 -
Flags: approval1.9?
Comment 7•16 years ago
|
||
Comment on attachment 305187 [details] [diff] [review] V3: Also do the debug code in nsMemoryCacheDevice a1.9+=damons
Attachment #305187 -
Flags: approval1.9? → approval1.9+
Updated•16 years ago
|
Keywords: checkin-needed
Comment 8•16 years ago
|
||
Checking in netwerk/cache/src/nsCacheEntry.cpp; /cvsroot/mozilla/netwerk/cache/src/nsCacheEntry.cpp,v <-- nsCacheEntry.cpp new revision: 1.65; previous revision: 1.64 done Checking in netwerk/cache/src/nsCacheEntry.h; /cvsroot/mozilla/netwerk/cache/src/nsCacheEntry.h,v <-- nsCacheEntry.h new revision: 1.47; previous revision: 1.46 done Checking in netwerk/cache/src/nsCacheService.cpp; /cvsroot/mozilla/netwerk/cache/src/nsCacheService.cpp,v <-- nsCacheService.cpp new revision: 1.119; previous revision: 1.118 done Checking in netwerk/cache/src/nsMemoryCacheDevice.cpp; /cvsroot/mozilla/netwerk/cache/src/nsMemoryCacheDevice.cpp,v <-- nsMemoryCacheDevice.cpp new revision: 1.58; previous revision: 1.57 done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9beta5
Assignee | ||
Comment 9•16 years ago
|
||
Verified: 37 bytes saved and my patch for the memCache is now somewhat simpler.
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Flags: wanted1.9.0.x?
You need to log in
before you can comment on or make changes to this bug.
Description
•