Fix bug 114292 (top crash in cache code). Patch prevents cache devices from evicting entries while they are being "bound". r=brendan, sr=darin, a=blizzard.
git-svn-id: svn://10.0.0.236/trunk@112469 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
95bad745a0
commit
63bcb0a760
6
mozilla/netwerk/cache/src/nsCacheEntry.h
vendored
6
mozilla/netwerk/cache/src/nsCacheEntry.h
vendored
@ -159,10 +159,10 @@ public:
|
||||
PRBool IsInitialized() { return (mFlags & eInitializedMask) != 0; }
|
||||
PRBool IsValid() { return (mFlags & eValidMask) != 0; }
|
||||
PRBool IsInvalid() { return (mFlags & eValidMask) == 0; }
|
||||
PRBool IsInUse() { return !(PR_CLIST_IS_EMPTY(&mRequestQ) &&
|
||||
PRBool IsInUse() { return IsBinding() ||
|
||||
!(PR_CLIST_IS_EMPTY(&mRequestQ) &&
|
||||
PR_CLIST_IS_EMPTY(&mDescriptorQ)); }
|
||||
PRBool IsNotInUse() { return (PR_CLIST_IS_EMPTY(&mRequestQ) &&
|
||||
PR_CLIST_IS_EMPTY(&mDescriptorQ)); }
|
||||
PRBool IsNotInUse() { return !IsInUse(); }
|
||||
|
||||
|
||||
PRBool IsAllowedInMemory()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user