Open Bug 1063697 Opened 7 years ago Updated 7 years ago

configure.in tests for js/src/shell/js.cpp's ShellMallocSizeOf don't pick up header for malloc_size on Mac

Categories

(Core :: JavaScript Engine, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

People

(Reporter: jimb, Assigned: jimb)

Details

Attachments

(1 file)

On Darwin, the malloc_size function, declared in <malloc/malloc.h>, will return the size of a malloc block, so we want to use it in ShellMallocSizeOf. However, our configure patch originally tested for malloc_size but not <malloc/malloc.h>, causing build failures. For expedience, I backed out the configure check for malloc_size altogether.

We should get this working on Mac, and ideally on Windows as well (which has the _msize function).
You need to log in before you can comment on or make changes to this bug.