Commit Graph

295 Commits

Author SHA1 Message Date
Honza Bambas
7523879097 Bug 1139924 - Dooming an unloaded HTTP cache entry by its URL may fail. r=michal 2015-03-05 08:42:00 -05:00
Michal Novotny
95ad438b95 Bug 1139014 - Optimize memory allocations in CacheFileMetadata, r=honzab 2015-03-06 15:49:04 +01:00
Honza Bambas
b35d18a3c9 Bug 1136897 - Don't evict expired entries from disk. r=michal 2015-03-03 07:58:00 +01:00
Michal Novotny
0a80f3730f Bug 1133739 - HTTP cache v2: Add telemetry probes to find out the best initial read size of the metadata (fixed missing initialization of mFirstRead in one constructor), r=jseward 2015-02-25 17:46:51 +01:00
Michal Novotny
72068c4ac6 Bug 1055369 - Assertion failure: !handle || !handle->IsDoomed(). r=honzab
CLOSED TREE DONTBUILD
2015-02-24 11:49:46 -05:00
Ryan VanderMeulen
817fe1a62f Backed out changeset 12b059c5afc2 (bug 1055369) for frequent asserts across all test suites. 2015-02-24 11:40:22 -05:00
Michal Novotny
1c0c2fd7ca Bug 1055369 - Assertion failure: !handle || !handle->IsDoomed(), r=honzab 2015-02-24 16:09:17 +01:00
Honza Bambas
93fd6a7e99 Bug 1076366 - HTTP cache v2: Hand out CacheEntry to read-only callback demanding re-validation, r=michal 2015-02-20 12:50:00 +01:00
Michal Novotny
ab7c1d6f0c Bug 1133739 - HTTP cache v2: Add telemetry probes to find out the best initial read size of the metadata, r=jduell 2015-02-23 16:13:02 +01:00
Michal Novotny
b710607af4 Bug 1131600 - Add telemetry probes to get detailed disk cache hit rate, r=mcmanus 2015-02-23 12:26:06 +01:00
Michal Novotny
1430239aa3 Bug 1128339 - Add telemetry probes to find out impact of bug 1120945, r=jduell 2015-02-23 12:24:35 +01:00
Honza Bambas
be85db587f Bug 1132109 - Make CacheEntry::mSortingExpirationTime atomic/relaxed. r=michal
CLOSED TREE
2015-02-13 07:59:00 -05:00
Honza Bambas
441838c510 Bug 1131092 - Place mFileStatus=NS_OK after CacheFile.Init() call in CacheEntry::Load(). r=michal 2015-02-13 07:58:00 -05:00
Honza Bambas
0e252bb74b Bug 1120631 - CacheEntry::mFileStatus made atomic/rel_acq. r=nfroyd, r=michal 2015-02-13 07:55:00 -05:00
Honza Bambas
b92c04b4a3 Bug 1079789 - Don't doom expired entries in the HTTP cache intermediate memory pool. r=michal
CLOSED TREE
2015-02-12 14:00:00 -05:00
Michal Novotny
e3878b45bc 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
cdc4849d47 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
9e0728ef38 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
Honza Bambas
845bc50083 Bug 1123840 - "crash in libsystem_platform.dylib@0x51e0". r=honzab.moz 2015-01-22 13:51:00 +01:00
James Kitchener
0463ec8f7b Bug 1100184 - Use absolute paths in /network local includes. r=gps 2015-01-16 20:41:06 +10:30
James Kitchener
6a912052bb Bug 1100184 - Flatten netwerk/base/{public,src}/ directories. r=mcmanus, r=poiru 2015-01-20 03:58:00 -05:00
Jeff Muizelaar
4a40f4c6b0 Bug 1114999 - Part 3: Use automatic memory management for mObjsToRelease; r=novotny 2015-01-15 18:19:26 -05:00
Michal Novotny
bea6151fe1 Bug 1117585 - Disk consumption observers could get released on the cache thread, r=jduell 2015-01-14 15:38:27 +01:00
Michal Novotny
46ce05e652 Bug 1038554 - fix potential wrong file offset calculation in CacheIndex::ParseRecords() and CacheIndex::ParseJournal(), r=honzab 2015-01-10 01:21:04 +01:00
Valentin Gosu
2534e0e8aa Bug 1119240 - Fix warning in CacheFile::PadChunkWithZeroes r=michal 2015-01-09 16:36:54 +02:00
Ehsan Akhgari
bd52bd3f4e Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Ehsan Akhgari
b3a9917cc8 Bug 1117042 follow-up: Fix the test bustage, landed on a CLOSED TREE
Removing these methods causes an infinite recursion because the equivalent
64-bit functions would end up tail-recursing.
2015-01-02 10:26:40 -05:00
Ehsan Akhgari
897c4949cc Bug 1117042 - Mark virtual overridden functions as MOZ_OVERRIDE in netwerk; r=mcmanus 2015-01-02 09:04:04 -05:00
Ehsan Akhgari
d27fba4863 Bug 1111225 - Build more files in netwerk/cache2 in unified mode; r=glandium
--HG--
extra : rebase_source : d80afcddfc5b50b7f24b5c1266810dde61b9e61f
2014-12-16 12:52:47 -05:00
Honza Bambas
76cce7097f Bug 1095281 - Open entries from a chosen appcache as read-only, r=michal 2014-11-19 18:46:10 +01:00
Michal Novotny
20a5870edd Bug 1074832 - CacheIndex merges journal with pending updates incorrectly, r=honzab 2014-10-28 15:59:53 +01:00
Ryan VanderMeulen
567a313379 Backed out changeset f156971f0f4d (bug 1074832) for Android crashes.
CLOSED TREE
2014-10-14 12:41:43 -04:00
Michal Novotny
20087db9e6 Bug 1074832 - CacheIndex merges journal with pending updates incorrectly, r=honzab 2014-10-14 16:33:06 +02:00
Michal Novotny
6b96e1b618 Bug 1066915 - Assertion failure: aEntry->IsDirty(), in mozilla::net::CacheIndex::UpdateEntryInIndex, r=honzab 2014-10-14 15:12:42 +02:00
Eric Rahm
be71a0b71a Bug 806819 - Part 3: Remove redundant FORCE_PR_LOG entries. r=ehsan 2014-10-08 13:17:32 -07:00
Wes Kocher
5000218064 Backed out 5 changesets (bug 806819) for WinXP test failures on a CLOSED TREE
Backed out changeset 009ae35b0c67 (bug 806819)
Backed out changeset 5a57f87f5061 (bug 806819)
Backed out changeset f06cd735b5b3 (bug 806819)
Backed out changeset e25a2a8d4af4 (bug 806819)
Backed out changeset 70a167982c3f (bug 806819)
2014-10-06 16:32:50 -07:00
Eric Rahm
4a41e11c21 Bug 806819 - Part 3: Remove redundant FORCE_PR_LOG entries. r=ehsan
--HG--
extra : rebase_source : c96eea1c12ea8c19314393f0e8b4b57a4316a61d
2014-10-06 13:08:20 -07:00
Michal Novotny
ef3d6dcdc1 Bug 1056919 - crash in memcpy | mozilla::net::CacheFileChunk::OnDataRead(mozilla::net::CacheFileHandle*, char*, tag_nsresult), r=honzab 2014-09-16 20:37:39 +02:00
Honza Bambas
34d6b77b2c Bug 1066726 - Concurrent HTTP cache read and write issues, r=michal+jduell 2014-09-16 15:51:50 +02:00
Honza Bambas
9c6f58fc20 Bug 1029782 - Have OPEN_SECRETLY flag for opening cache entries, r=michal 2014-09-16 15:51:50 +02:00
Honza Bambas
d7feb5510d Bug 1000338 - nsICacheEntry.lastModified not properly implemented, r=michal 2014-09-16 15:51:50 +02:00
Carsten "Tomcat" Book
1986252483 Backed out changeset ce8f00cca9dd (bug 1000338) for XPC-2 test failures 2014-09-11 14:31:54 +02:00
Carsten "Tomcat" Book
a9a158f042 Backed out changeset 25c721fd5dc6 (bug 1029782) for XPCshell bustage on a CLOSED TREE 2014-09-11 13:07:41 +02:00
Honza Bambas
518161c664 Bug 1029782 - Have OPEN_SECRETLY flag for opening cache entries, r=michal 2014-09-11 11:44:31 +02:00
Honza Bambas
f834c0c5b4 Bug 1000338 - nsICacheEntry.lastModified not properly implemented, r=michal 2014-09-11 11:44:31 +02:00
Michal Novotny
1284219ac6 Bug 1052266 - Potential deadlock detected: CacheEntry, CacheIndex.mLock, CacheStorageService at CacheEntry, r=honzab 2014-09-10 14:43:50 +02:00
Steve Workman
d67008c598 Bug 1058099 - Cancel CacheStorageService::mPurgeTimer if it's still set during shutdown r=mayhemer 2014-09-02 13:33:32 -07:00
Trevor Saunders
e1a88eb1fb bug 1059490 - mark more classes MOZ_FINAL r=froydnj 2014-08-27 14:26:48 -04:00
Ehsan Akhgari
b2f0615820 Bug 1061052 - Fix more bad implicit constructors in netwerk; r=mcmanus 2014-09-02 09:49:38 -04:00
Trevor Saunders
b6b2d4b019 bug 1047696 - mark a number of classes MOZ_FINAL to get compilers to devirtualize more r=froydnj 2014-08-05 13:33:55 -04:00
Kyle Huey
9702ddfc53 Bug 1034315: Don't use NS_DECL_NSIFOO macros without inheriting from nsIFoo in netwerk/. r=mayhemer
--HG--
extra : rebase_source : a16e530ad8aafa28f45be95641c6c0c3aac7cda6
2014-08-21 10:47:38 -07:00
Michal Novotny
7892309b8c Bug 1054425 - cache2: leak in CacheFileMetadata::WriteMetadata, r=jduell 2014-08-18 21:11:40 +02:00
Michal Novotny
bb35753e96 Bug 1042192 - Use Cache2 I/O thread for callbacks from CacheFileIOManager, r=sworkman 2014-08-18 15:36:27 +02:00
Valentin Gosu
5a8366d993 Bug 1045886 - Remove Cache directory from Android profiles r=michal 2014-08-13 16:43:45 +03:00
Andrew McCreight
14a59b9fa7 Bug 1046281 - Use the simpler version of nsTHashtable memory reporters. r=njn 2014-08-05 13:27:41 -07:00
Ehsan Akhgari
9745a79694 Bug 1048271 - Fix more bad implicit constructors in netwerk; r=mcmanus 2014-08-05 09:20:24 -04:00
Jeremy Poulin
1a2a664296 Bug 1038357 - Add automatic pruning for mForcedValidEntries in CacheStorage Service. r=honzab 2014-07-15 09:23:09 -07:00
Jeremy Poulin
00b5341e5c Bug 1020416 - Added forceValidFor() and isForcedValid attribute to nsICacheEntry. r=honzab, michal 2014-07-21 11:34:17 -07:00
L. David Baron
b3a72bfdc6 Back out the remainder of 3f6ee18b1e9d (bug 1038357), most of which was backed out in 8da875b402fe (backout of bug 1020416). 2014-07-25 17:49:36 -07:00
Brad Lassey
adf88606de back out bug 1020416 for causing hangs on Firefox for Android 2014-07-25 13:21:42 -04:00
Jeremy Poulin
54abc43e0f Bug 1038357 - Added automatic pruning for mForcedValidEntries in CacheStorage Service. r=honzab 2014-07-15 09:23:09 -07:00
Mike Hommey
9ae3c48776 Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal 2014-07-23 08:37:51 +09:00
Jeremy Poulin
e69144dffb Bug 1020416 - Added forceValidFor() and isForcedValid attribute to nsICacheEntry. r=honzab, michal 2014-07-21 11:34:17 -07:00
Carsten "Tomcat" Book
0a6b2c043a Backed out changeset a232fd36c827 (bug 1020416) for nightly startup crashed - bug 1041492 a=sheriffduty 2014-07-21 14:57:09 +02:00
Jeremy Poulin
9c78728d5e Bug 1020416 - Add forceValidFor() and isForcedValid attribute to nsICacheEntry. r=honzab, r=michal 2014-07-18 18:11:34 -07:00
Honza Bambas
957f0836c7 Bug 1037447 - Introduce nsICacheEntry nsICacheStorage.openTruncate(URL, idEnhance), r=michal 2014-07-16 16:16:30 +02:00
Honza Bambas
99df391abb Bug 1034672 - Fix order of arguments to memcpy in WriteMetadata. r=michal 2014-07-16 10:07:48 -04:00
Michal Novotny
d4fc6d5f42 Bug 1035411 - Suspect lock handling in cache2, r=honzab 2014-07-16 10:57:52 +02:00
Michal Novotny
40b2aaea52 Bug 1028415 - Cache thread gets stuck in CacheFileIOManager::OverLimitEvictionInternal loop, r=honzab 2014-07-16 10:47:02 +02:00
Benoit Girard
cb397e6eb5 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
d2503e2bb9 Bug 979900 - Avoid completely filling cache partition on Gonk, r=honzab 2014-07-11 08:25:55 +02:00
Nicholas Nethercote
ab815d0c3b Bug 1036789 - Convert the third quarter of MFBT to Gecko style. r=Ms2ger.
--HG--
extra : rebase_source : 668cd394806203ddfa34bd4f226335ff26c846b5
2014-07-10 19:10:17 -07:00
Michal Novotny
5b6c995de2 Bug 1013395 - HTTP cache v2: have a limit for write backlog, r=honzab 2014-07-10 07:59:29 +02:00
Benoit Jacob
c517b3dd2b Bug 1035394 - Fix dangerous public destructors in netwerk - r=mcmanus 2014-07-08 17:23:18 -04:00
Honza Bambas
5acf95d33e Bug 920606 - HTTP cache v2: add telemetry for the intermediate memory cache purging, r=michal 2014-07-08 16:48:00 +02:00
Honza Bambas
ea6bc303ad Bug 1032992 - Set mHasData in CacheEntry when metadata are filled but no data are written, r=michal 2014-07-07 20:58:26 +02:00
Honza Bambas
9f0550ae71 Backing out 6c5c6cbad330 (bug 1032992) for Adnroid failures - GC doesn't work there as on other platforms..., r=backout 2014-07-02 19:53:00 +02:00
Honza Bambas
dfc928aba7 Bug 1032992 - Set mHasData in CacheEntry when metadata are filled but no data are written, r=michal 2014-07-02 18:16:22 +02:00
Honza Bambas
6e7cb4bda7 Bug 1027789 - CacheEntry::RememberCallback should unlock before call to InvokeAvailableCallback, r=michal 2014-07-02 18:16:21 +02:00
Honza Bambas
eef02f8961 Bug 1025913 - Let memory-only HTTP cache entries doom disk entries, CacheEntry.mUseDisk immutable, r=michal 2014-06-25 18:42:50 +02:00
Benoit Jacob
d51ba204fb Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
Honza Bambas
d03b8868f9 Bug 1024989 - Crash MOZ_ASSERT(mMetadata) in SetFrecency, r=michal 2014-06-24 18:08:36 +02:00
Honza Bambas
30423ad23b Bug 1023413 - Introduce bool nsICacheStorage.exists(nsIURI, ACString), r=michal 2014-06-24 18:08:35 +02:00
Honza Bambas
c7ab92d1ad Bug 967310 - optimize call to CacheFileIOManager::UnscheduleMetadataWrite, r=michal 2014-06-23 17:48:52 +02:00
Honza Bambas
1b75271e43 Bug 956801 - save some locking in CacheEntry::BackgroundOp, r=michal 2014-06-23 17:48:52 +02:00
Carsten "Tomcat" Book
a3056811ee Backed out changeset 374f71301703 (bug 956801) for causing Android 2.2 Armv6 Opt XPCShell Test failures on a CLOSED TREE 2014-06-23 13:07:18 +02:00
Carsten "Tomcat" Book
8e64cacd96 Backed out changeset d1c1aec94228 (bug 967310) for causing Android 2.2 Armv6 Opt XPCShell Test failures on a CLOSED TREE 2014-06-23 13:07:09 +02:00
Carsten "Tomcat" Book
f9c027ef68 Backed out changeset f2c5626b3cec (bug 1023413) for causing Android 2.2 Armv6 Opt XPCShell Test failures on a CLOSED TREE 2014-06-23 13:06:30 +02:00
Honza Bambas
89d8927d57 Bug 1023413 - Introduce bool nsICacheStorage.exists(nsIURI, ACString), r=michal 2014-06-21 21:41:02 +02:00
Honza Bambas
93dd96aa60 Bug 967310 - optimize call to CacheFileIOManager::UnscheduleMetadataWrite, r=michal 2014-06-21 21:41:01 +02:00
Honza Bambas
93b81e1052 Bug 956801 - save some locking in CacheEntry::BackgroundOp, r=michal 2014-06-21 21:41:01 +02:00
Benoit Jacob
58b17c899b Bug 1027251 - Fix or whitelist dangerous public destructors in netwerk/ - r=mcmanus 2014-06-20 07:08:24 -04:00
Nicholas Nethercote
bb9d51e11e Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg.
--HG--
extra : rebase_source : 5eb756b17a97e751deb0f47e909fdb35533cb23b
2014-05-20 23:06:54 -07:00
Honza Bambas
10e522722d Bug 1024495 - crash in mozilla::net::CacheFileIOManager::GetProfilelessCacheDirectory, r=michal 2014-06-13 01:45:43 +02:00
Honza Bambas
0cca635028 Bug 1024635 - Add 'network' contract ID alias for the new cache service, r=bz 2014-06-13 01:45:43 +02:00
Honza Bambas
6ea917fd70 Bug 1013587 - HTTP cache v2: Start preload on input stream open for existing entries, r=michal 2014-06-12 18:04:42 +02:00
Michal Novotny
0aa0a48d6a Bug 1013638 - CacheFileIn(Out)putStream::AsyncWait() doesn't respect eventTarget argument, r=honzab 2014-06-12 18:04:41 +02:00
Michal Novotny
23a6a613cd Bug 1021612 - Fix offset calculation in CacheFileMetadata::ReadMetadata(), r=honzab 2014-06-08 00:00:57 +02:00
Honza Bambas
420f7458b0 Bug 999577 - disable addon access to cache v1 IDLs, r=michal+jduell 2014-06-05 20:14:07 +02:00
Ryan VanderMeulen
a399b90ef2 Backed out changeset d405928cb934 (bug 999577) and changeset 940d041073c7 (bug 938186) for xpcshell failures.
CLOSED TREE
2014-06-05 13:32:04 -04:00