Michal Novotny
746f05dfdc
Bug 1257611 - Fix wrong CondVar::Wait() and Monitor::Wait() usage in netwerk/cache2, r=honzab
2016-03-21 16:51:58 +01:00
Michal Novotny
905b1bb8a9
Backed out changeset 1ff643f2c358 (bug 1251130). r=backout
2016-03-11 12:55:15 +01:00
Michal Novotny
122dbc877f
Bug 1251130 - null out CacheFileIOManager::gInstance in CacheFileIOManager::ShutdownInternal() to prevent doing shutdown procedure multiple times, r=honzab
2016-03-09 16:50:16 +01:00
J. Ryan Stinnett
f6d23d0dde
Bug 1238160 - Rename OriginAttributes.mInBrowser and associated methods. r=bz,mayhemer
...
This change renames OriginAttributes.mInBrowser to mInIsolatedMozBrowser and
nsIPrincipal::GetIsInBrowserElement to GetIsInIsolatedMozBrowserElement. Other
methods that pass these values around also have name changes.
Tokens such as "inBrowser" have previously been serialized into cache keys, used
as DB column names, stored in app registries, etc. No changes are made to any
serialization formats. Only runtime method and variable names are updated.
No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations. These are corrected in subsequent patches
focused on behavior.
MozReview-Commit-ID: 66HfMlsXFLs
2016-03-02 10:35:56 -06:00
Honza Bambas
2a4f2863f9
Bug 1247644 - Don't do any I/O on doomed and unused HTTP cache entries, r=michal
2016-02-12 14:45:00 +01:00
Honza Bambas
33335d9020
Bug 1239687 - Leak invalid/doomed file handles immediately after HTTP cache shutdown. r=michal
2016-01-14 08:14:00 +01:00
Honza Bambas
641dca290e
Bug 913822 - Shutdown I/O time limit for HTTP cache. r=michal
2016-01-13 16:11:00 -05:00
Nathan Froyd
4a55740bf8
Bug 1223808 - part 2 - use UniquePtr<uint8_t[]> instead of nsAutoArrayPtr<SHA1Sum::Hash> in HandleHashKey; r=michal
2015-11-18 15:56:47 -05:00
Honza Bambas
f138be112b
Bug 1206060 - Show pinning status at about:cache. r=michal
2015-10-30 08:12:00 +01:00
Honza Bambas
88d540ea21
Bug 1032254 - Generic way to pin reasource in the HTTP cache, r=michal
...
* * *
Bug NNNNNNN - message, r=reviewer
2015-10-22 12:11:00 +02:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Honza Bambas
213ca181dd
Bug 1165269 - Use OriginAttributes in nsILoadContextInfo, r=michal+allstars
2015-10-11 18:13:09 +02:00
Nathan Froyd
a8b6de8325
Bug 1156974 - mark CacheFileHandle::mIsDoomed as a release/acquire Atomic variable; r=michal
2015-08-04 00:32:36 -04:00
Nicholas Nethercote
4e11dfb7e5
Bug 1182961 (part 4, attempt 2) - Use nsTHashtable::Iterator in CacheFileHandles. r=michal.
2015-07-26 23:31:22 -07:00
Nicholas Nethercote
95aeb00af6
Backout bff74cecc67c, ffe0edb2aae7, b60b7c267cef, 6da154b43265, bcf6fd3ab9bb (bug 1182961 parts 1--5) for possible intermittent failures and performance problems.
2015-08-06 16:30:47 -07:00
Nicholas Nethercote
0626d5c1eb
Bug 1182961 (part 4) - Use nsTHashtable::Iterator in CacheFileHandles. r=michal.
2015-07-26 23:31:22 -07:00
Carsten "Tomcat" Book
ca308afdc0
Backed out changeset fb2a27db76bc (bug 1032254) for OS X Static Build Bustage on a CLOSED TREE
2015-07-31 07:57:50 +02:00
Valentin Gosu
e4fd4909fb
Bug 1032254 - Provide a way to pin resources in the http cache r=honzab
2015-07-30 11:40:00 +02:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Honza Bambas
1dc83b6242
Bug 1170534 - Remove Visual Event Tracer. r=dougt
2015-06-02 11:44:00 -04:00
Neil Rashbrook
3ac6e8ce7a
Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan
2015-05-16 09:07:10 +01:00
Wes Kocher
aae9c961fe
Backed out changeset 17cfad44e12b (bug 1155963) for breaking b2g builds
2015-05-14 16:35:18 -07:00
Neil Rashbrook
8d294091b1
Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan
2015-05-15 00:00:33 +01:00
Eric Rahm
1d6101df90
Bug 1162336 - Part 2: Wrap expensive calls in PR_LOG_TEST. r=froydnj
...
Check that logging is enabled before performing potentially expensive
operations.
2015-05-07 12:52:45 -07:00
Eric Rahm
b676a83446
Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj
...
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 12:52:44 -07:00
Wes Kocher
ce92b3fcd9
Backed out 2 changesets (bug 1162336) for breaking at least windows builds
...
Backed out changeset 8952a7fa4050 (bug 1162336)
Backed out changeset 0170a6c2a5be (bug 1162336)
2015-05-07 11:13:24 -07:00
Eric Rahm
86aef1067d
Bug 1162336 - Part 2: Wrap expensive calls in PR_LOG_TEST. r=froydnj
...
Check that logging is enabled before performing potentially expensive
operations.
2015-05-07 10:35:29 -07:00
Eric Rahm
bd957615ed
Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj
...
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 10:35:28 -07:00
Michal Novotny
2ef0ebc4df
Bug 1141555 - HTTP cache v2 generates corrupted entries, r=jduell
2015-03-26 23:05:34 +01:00
Michal Novotny
0f8b04b6cd
Bug 1055369 - Assertion failure: !handle || !handle->IsDoomed(). r=honzab
...
CLOSED TREE DONTBUILD
2015-02-24 11:49:46 -05:00
Ryan VanderMeulen
c05b1972ff
Backed out changeset 12b059c5afc2 (bug 1055369) for frequent asserts across all test suites.
2015-02-24 11:40:22 -05:00
Michal Novotny
55dc9b3fd3
Bug 1055369 - Assertion failure: !handle || !handle->IsDoomed(), r=honzab
2015-02-24 16:09:17 +01:00
Michal Novotny
8c08e63528
Bug 1128339 - Add telemetry probes to find out impact of bug 1120945, r=jduell
2015-02-23 12:24:35 +01:00
Michal Novotny
1cb2032576
Bug 1130784 - FAT32 file create limit code is using a bad error number, r=honzab
2015-02-12 11:28:50 +01:00
Michal Novotny
743773e29f
Bug 1119406 - HTTP cache v2: Doom cache entry when writing of metadata fails, r=honzab
2015-01-27 15:50:18 +01:00
Michal Novotny
575ebad055
Bug 1120945 - HTTP cache v2: maximum number of entries is limited to 13106 on FAT32, r=honzab
2015-01-27 02:29:02 +01:00
Michal Novotny
c65103f840
Bug 1054425 - cache2: leak in CacheFileMetadata::WriteMetadata, r=jduell
2014-08-18 21:11:40 +02:00
Michal Novotny
357ecb53d6
Bug 1042192 - Use Cache2 I/O thread for callbacks from CacheFileIOManager, r=sworkman
2014-08-18 15:36:27 +02:00
Andrew McCreight
81cbb05900
Bug 1046281 - Use the simpler version of nsTHashtable memory reporters. r=njn
2014-08-05 13:27:41 -07:00
Ehsan Akhgari
cae4fa66a8
Bug 1048271 - Fix more bad implicit constructors in netwerk; r=mcmanus
2014-08-05 09:20:24 -04:00
Michal Novotny
b7d47eace0
Bug 1028415 - Cache thread gets stuck in CacheFileIOManager::OverLimitEvictionInternal loop, r=honzab
2014-07-16 10:47:02 +02:00
Benoit Girard
28eb7316ee
Bug 1037691 - Fix instances where refcounted classes expose a public destructor. r=ehsan,bent,mayhemer,jrmuizel
2014-07-15 11:37:45 -04:00
Michal Novotny
30f572b7d0
Bug 979900 - Avoid completely filling cache partition on Gonk, r=honzab
2014-07-11 08:25:55 +02:00
Honza Bambas
aba6ad254c
Bug 1024495 - crash in mozilla::net::CacheFileIOManager::GetProfilelessCacheDirectory, r=michal
2014-06-13 01:45:43 +02:00
Honza Bambas
773de946ec
Bug 961024 - Move HTTP cache on Android to application's cache/profile leaf name, r=michal
2014-06-03 14:35:17 +02:00
Honza Bambas
978fb8c67a
Bug 1016451 - HTTP cache v2: add shutdown time probe for sanitize case, r=michal
2014-05-29 00:52:21 +02:00
Birunthan Mohanathas
385cfc1f37
Bug 869836 - Part 10: Use Truncate instead of AssignLiteral(""). r=ehsan
2014-05-26 21:54:53 +03:00
Birunthan Mohanathas
cc3389eabe
Bug 869836 - Part 5: Use AssignLiteral instead of Assign where possible. r=ehsan
2014-05-22 06:48:51 +03:00
Michal Novotny
264a88657b
Bug 1003208 - HTTP cache v2: CacheFileHandle::mHash is accessed after the memory is freed, r=honzab
2014-05-05 15:11:39 +02:00
Honza Bambas
ac742d35b0
Bug 916052 - Adapt about:cache to the HTTP cache v2 API, r=michal+MattN
2014-05-01 13:28:12 +02:00