gecko-dev/modules/libjar
Mike Hommey f42cec8f44 Bug 1534209 - Do not readahead when PrefetchVirtualMemory is not available. r=aklotz
Re-enabling the PGO jarlog, which was unexpectedly disabled since Firefox 56
showed a regression on Windows 7, due to the use of mozilla::ReadAhead,
which on Windows 7 does explicit I/O on the caller thread.

While there may be some benefit from doing so, evidence says the
opposite, which is presumably due to the amount of data being loaded not
being relevant in every case: the jarlog is gathered from a first-run,
which has a different jar-loading profile from subsequent runs of
Firefox.

While we may want to improve the situation later on, the immediate thing
we can do is stop doing this explicit read, while keeping the OS
readahead hints on other platforms, which don't imply explicit I/O.

All this does is effectively get us back to the same state as if jarlogs
were disabled like it was since Firefox 56, for Windows 7 only.

aFd not being used anymore, the code could be cleaned up a lot, but we
may reintroduce the readahead later, so keep the status quo for now.

Differential Revision: https://phabricator.services.mozilla.com/D23642

--HG--
extra : moz-landing-system : lando
2019-03-18 22:39:44 +00:00
..
test Bug 1525319 - Removing context from OnDataAvailable r=valentin 2019-02-27 23:42:27 +00:00
zipwriter Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-03-13 10:19:06 +01:00
appnote.txt
components.conf Bug 1524687: Part 5 - Convert JAR module to static registration. r=valentin 2019-01-24 15:49:33 -08:00
moz.build Bug 1530685 - Part 3: Remove nsIJARProtocolHandler; r=valentin 2019-02-26 15:29:37 +00:00
nsIJARChannel.idl
nsIJARURI.idl Bug 1530685 - Part 1: Remove unused nsIJARURI::cloneWithJARFile() method; r=valentin 2019-02-26 15:28:18 +00:00
nsIZipReader.idl
nsJAR.cpp Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
nsJAR.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
nsJARChannel.cpp Merge mozilla-inbound to mozilla-central. a=merge 2019-03-14 18:25:40 +02:00
nsJARChannel.h Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin 2019-02-12 16:08:25 +00:00
nsJARInputStream.cpp Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
nsJARInputStream.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsJARProtocolHandler.cpp Bug 1530685 - Part 3: Remove nsIJARProtocolHandler; r=valentin 2019-02-26 15:29:37 +00:00
nsJARProtocolHandler.h Bug 1530685 - Part 3: Remove nsIJARProtocolHandler; r=valentin 2019-02-26 15:29:37 +00:00
nsJARURI.cpp Bug 1523969 part 17 - Move method definition inline comments to new line in 'modules/'. r=ehsan 2019-02-25 16:10:36 -06:00
nsJARURI.h Bug 1530685 - Part 1: Remove unused nsIJARURI::cloneWithJARFile() method; r=valentin 2019-02-26 15:28:18 +00:00
nsZipArchive.cpp Bug 1534209 - Do not readahead when PrefetchVirtualMemory is not available. r=aklotz 2019-03-18 22:39:44 +00:00
nsZipArchive.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
zipstruct.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00