Closed Bug 1083573 Opened 10 years ago Closed 6 years ago

Avoid going through segfault handler during CustomElf initialization

Categories

(Core :: mozglue, defect)

All
Android
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: glandium, Unassigned)

Details

As noted in bug 1081034 comment 10, we currently register CustomElfs early so that accessing its data decompresses the data when it is required, like anything else. But unlike anything else, we actually know what data is going to be accessed, and could preemptively request its decompression with mappable->ensure. This applies to PT_DYNAMIC reading, relocations, and running static initializers, but running static initializers may still require other pages of data, so the CustomElf would still need to be registered before.
Bug 1376704 removed on-demand decompression, so this became moot.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.