Kartikaya Gupta
14424677af
Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj
...
We have a minimum requirement of VS 2015 for Windows builds, which supports
the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
any more, and can just use %zu and friends directly everywhere.
MozReview-Commit-ID: 6s78RvPFMzv
2017-07-26 16:03:57 -04:00
Mike Hommey
29a132ef0d
Bug 1376704 - Remove szip support in the linker. r=snorp
...
Since bug 1307886, we don't actually use szip anymore, and don't even
have the option to package Fennec using it. We can thus remove the
support for loading them, as well as on demand linkage.
The latter might mean we can remove the segfault handler, but it's
unclear whether this is currently working around other issues with
registering signal handlers, so we'll leave that to a followup.
2017-06-28 15:47:31 +09:00
Jim Chen
c7b862586c
Bug 1360321 - 4d. Define mmap ordering for AArch64; r=froydnj r=glandium
...
Specify mmap address ordering for AArch64 so we properly allocate buffer
pages.
MozReview-Commit-ID: 4vGztSsAaXm
2017-05-17 13:06:22 -04:00
Jim Chen
14f9b2fe1e
Bug 1360321 - 4a. Fix printf macro mismatches in mozglue; r=froydnj r=glandium
...
Fix printf macro mismatches where, for example, `PRIxPTR` is defined for
`long` but the ELF `Addr` type is defined as `long long`.
MozReview-Commit-ID: 8hXY1MpHPjS
2017-05-17 13:06:22 -04:00
Tom Tromey
bc41a9b4a6
Bug 1060419 - convert mozglue/linker to use the mfbt-provided printf format defines, r=froydnj
...
MozReview-Commit-ID: LW6eDUxWXrp
2016-12-14 14:22:49 -07:00
Jim Chen
a76b58154e
Bug 1337304. r=snorp
2017-02-08 13:49:20 -05:00
Eugen Sawin
b2ce20f383
Bug 1283629 - [1.1] Check for cached library file availability before reusing it. r=glandium
2016-11-15 15:19:25 +01:00
Eugen Sawin
4294c3e9cd
Bug 1294736 - [3.2] Detect and decode XZ streams when extracting files. r=glandium,snorp
2016-10-18 20:53:33 +02:00
Eugen Sawin
31c774175c
Bug 1302516 - [1.2] Add mutex locking to ZipCollection zip vector access. r=glandium
2016-09-14 12:47:06 +02:00
Eugen Sawin
b1d124117d
Bug 1294731 - [4.3] Don't unlink cached extracted files on shutdown. r=glandium
2016-08-25 12:51:44 +02:00
Eugen Sawin
b691fecea1
Bug 1294731 - [2.8] Validate cached libraries based on checksums. r=glandium
2016-08-25 12:51:44 +02:00
Nathan Froyd
4971871579
Bug 1251881 - use UniquePtr instead of ScopedDeletePtr in mozglue/linker/; r=glandium
...
There are two instances:
- MappableSeekableZStream::Create uses ScopedDeletePtr, which is
actually a little odd, since MappableSeekableZStream, as a Mappable,
is refcounted, and it's unusual to use two different kinds of smart
pointers for a single class. I think the more natural thing would be
for MappableSeekableZStream::Create to return an already_AddRefed, but
that change spirals out of the realm of "simple refactoring" quickly.
- SzipCompress::run uses ScopedDeletePtr along with some dubious use of
raw pointers. I changed things out for UniquePtr and also tidied the
memory management a bit, which I think makes things a little clearer.
2016-02-26 13:50:59 -05:00
Mike Hommey
a48ef48a30
Bug 1059797 - Pre-allocate zlib inflate buffers in faulty.lib. r=froydnj
...
Original patch from James Willcox <[email protected] >
2014-10-28 16:45:17 +09:00
Jeff Walden
4ae1026e79
Bug 1037100 - Remove all use of ScopedDeleteArray from mozglue/. r=glandium
2014-07-21 18:14:11 -04:00
Jeff Walden
d5f032fc07
Bug 953296 - Convert trivial ScopedDelete{Ptr,Array} uses to UniquePtr in mozglue/linker/. (More remain, but they're less trivial to change.) r=glandium
2013-12-30 13:34:54 -06:00
Mike Hommey
d51a6bf16c
Bug 1024248 - Properly tag linker error/warnings in logcat. r=nfroyd
2014-06-13 08:45:58 +09:00
Mike Hommey
81b2c4c81f
Bug 959254 - Make MappableSeekableZStream::ensure mprotect error message more useful for debugging failures. r=nfroyd
2014-01-15 16:21:45 +09:00
Birunthan Mohanathas
19c575e6e1
Bug 784739 - Switch from NULL to nullptr in mozglue/linker/; r=ehsan
2013-11-11 14:15:46 -05:00
Nathan Froyd
12e326b965
Bug 920558 - map anonymous pages differently on ARM and x86; r=glandium
2013-09-26 11:17:05 -04:00
Nathan Froyd
4673a87576
Bug 916923 - work around crash reporter issues with adjacent memory mappings on x86 android; r=glandium,f=gbrown
2013-09-23 15:02:28 -04:00
Mike Hommey
17bd366dfe
Bug 897723 - Allow faulty.lib's on-demand decompression to be reentrant. r=nfroyd
2013-07-26 12:57:53 +09:00
Mike Hommey
4541efb332
Bug 882608 - Fix various issues in faulty.lib with incomplete pages and MOZ_LINKER_ONDEMAND=0. r=nfroyd
2013-07-23 07:26:07 +09:00
Justin Lebar
de89040a2c
Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
This is a mechanical change made with sed. Later patches in this queue
clean up the whitespace errors and so on.
2013-06-28 18:38:30 -07:00
Mike Hommey
8c648fbcc1
Bug 886730 - Add and use a MemoryRange class and helper functions for page alignment in faulty.lib. r=nfroyd
2013-06-27 09:35:49 +09:00
Mike Hommey
572571fc53
Bug 886722 - Rename log/debug to LOG/DEBUG_LOG in faulty.lib. r=nfroyd
2013-06-27 09:35:49 +09:00
Mike Hommey
6454c8cfae
Bug 802240 - Expose an API to mmap the underlying file for a library loaded by faulty.lib. r=nfroyd
2013-04-12 10:23:12 +02:00
Mike Hommey
64bf8ad0ba
Bug 847479 - Add buffer length information when initializing a SeekableZStream. r=nfroyd
2013-03-06 07:29:05 +01:00
Mike Hommey
3539fe1dff
Bug 830326 - Get rid of warnings in the custom linker code. r=nfroyd
2013-01-15 10:12:56 +01:00
Mike Hommey
cc6795aef6
Bug 828894 - Fix possible off-by-one-page in custom linker. r=nfroyd
2013-01-11 12:24:31 +01:00
Mike Hommey
0e9365f2f8
Bug 828301 - Free zlib internal buffers when we're done uncompressing in the custom linker. r=nfroyd
2013-01-10 08:39:07 +01:00
Mike Hommey
c4c8db8f98
Bug 826263 - Fix ~_MappableBuffer in the linker on Android. r=nfroyd
2013-01-03 16:46:09 +01:00
Andrew Quartey
b80915b6c9
Bug 735615 - Remove AutoClean from mozglue/linkers/Utils.h r=glandium
2012-07-30 14:17:53 -04:00
Tor Lillqvist
025fd7ea9d
Bug 731961 - Include cstdio from Mappable.cpp for sprintf. r=glandium
2012-02-07 11:35:00 +02:00
Mike Hommey
842a742c7d
Bug 727960 - When extracting libraries, reuse cached library if it is newer than the apk. r=tglek
2012-02-22 08:12:15 +01:00
Mike Hommey
d8f9558be5
Bug 686805 part 6 - Add functions to display stats about seekable compressed streams. r=tglek
2012-02-22 08:12:15 +01:00
Mike Hommey
73ab5ebb59
Bug 686805 part 4 - Make the linker load libraries with on-demand decompression when they are seekable compressed streams. r=tglek,r=sewardj
2012-02-22 08:12:15 +01:00
Mike Hommey
5bc3424d42
Bug 686805 part 1 - Make Mappable::munmap, Mappable1stPagePtr::munmap and MappedPtr::munmap private. r=tglek
2012-02-22 08:12:15 +01:00
Mike Hommey
ac8442dd5d
Bug 725230 - Enable and fix assertions in linker code. r=tglek
2012-02-13 15:49:45 +01:00
Mike Hommey
ededad1c7e
Backout 8eef38643ceb (bug 717540) and 78941a969e20 (bug 725230) because of windows debug bustage
2012-02-13 16:35:13 +01:00
Mike Hommey
8529639ab8
Bug 725230 - Enable and fix assertions in linker code. r=tglek
2012-02-13 15:49:45 +01:00
Mike Hommey
c780dc358e
Bug 683127 part 9 - Allow to temporarily extract Elf files from a Zip archive for e.g. valgrind. r=tglek
2012-01-20 09:48:50 +01:00
Mike Hommey
067852eab4
Bug 683127 part 8 - Allow to load Elf files from a Zip archive. r=tglek,r=sewardj
2012-01-20 09:48:44 +01:00