mozjemalloc.cpp should use posix_madvise on Solaris

RESOLVED FIXED in Firefox 68

Status

()

defect
RESOLVED FIXED
3 months ago
3 months ago

People

(Reporter: petr.sumbera, Assigned: petr.sumbera)

Tracking

Trunk
Firefox 68
Points:
---

Firefox Tracking Flags

(firefox68 fixed)

Details

Attachments

(1 attachment)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Steps to reproduce:

On Solaris madvise is declared like:

int madvise(caddr_t addr, size_t len, int advice);

On Linux:

int madvise(void *addr, size_t length, int advice);

(first argument type: caddr_t vs void*)

Therefore we should use on Solaris posix_madvise which is:

int posix_madvise(void *addr, size_t len, int advice);

(and it internally calls madvise anyway)

This would be the same approach as it was used in different places (e.g. Bug 963983).

Keywords: checkin-needed

Pushed by nerli@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d9f68f966c69
mozjemalloc.cpp should use posix_madvise on Solaris r=glandium

Keywords: checkin-needed
Status: UNCONFIRMED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
Assignee: nobody → petr.sumbera
You need to log in before you can comment on or make changes to this bug.