Closed Bug 699101 Opened 13 years ago Closed 13 years ago

NO_MAC_JEMALLOC can't work on 10.5, so display a warning when it's specified

Categories

(Core :: Memory Allocator, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla10
Tracking Status
firefox10 --- fixed

People

(Reporter: justin.lebar+bug, Assigned: justin.lebar+bug)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file, 1 obsolete file)

Patch in a moment.
Blocks: 694335
* memalign is unavailable on Leopard, so we can't dynamically do this there. * However, we don't use jemalloc on Leopard, so we can ignore this. */ #if defined(MOZ_MEMORY_DARWIN) && !defined(__i386__) So now we *are* using jemalloc on Leopard. When does MEMALIGN get called? If MEMALIGN is called and we're not using jemalloc, what the heck are we supposed to do? Crash?
I should have given more context in comment 1. It's #if defined(MOZ_MEMORY_DARWIN) && !defined(__i386__) #define DARWIN_ONLY(A) if (!osx_use_jemalloc) { A; } #else #define DARWIN_ONLY(A) #endif
Attached patch Patch? v1 (obsolete) (deleted) — Splinter Review
So, memalign is apparently called on 10.5. I guess this means that we can't dynamically turn off jemalloc there. Not a huge deal; this is only for testing, anyway. I'll post a patch fixing the comment.
Attached patch Patch v2 (deleted) — Splinter Review
Attachment #571460 - Flags: review?(khuey)
Attachment #571355 - Attachment is obsolete: true
Assignee: nobody → justin.lebar+bug
Status: NEW → ASSIGNED
Attachment #571460 - Attachment description: Patch v1 → Patch v2
Summary: jemalloc's DARWIN_ONLY macro doesn't work on i386, breaking NO_MAC_JEMALLOC → NO_MAC_JEMALLOC can't work on 10.5, so display a warning when it's specified
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla10
Is there a testcase QA can use to verify this fix?
Whiteboard: [qa?]
(In reply to Anthony Hughes, Mozilla QA (irc: ashughes) from comment #8) > Is there a testcase QA can use to verify this fix? No.
Whiteboard: [qa?] → [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: