Closed Bug 778078 Opened 12 years ago Closed 12 years ago

disable glib slice allocator on systems with jemalloc in libc

Categories

(Core :: Memory Allocator, defect)

All
FreeBSD
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: jbeich, Assigned: jbeich)

References

()

Details

Attachments

(1 file, 1 obsolete file)

FreeBSD and NetBSD have jemalloc in libc for quite some time[1]. I think Bug 431221 is also applicable to them when not using --enable-jemalloc.

[1] FreeBSD 6.4 release, the last one with old malloc, was discontinued ~2 years ago;
    I expect NetBSD 4.x won't be far off, too
Attached patch disable (obsolete) — Splinter Review
Attachment #646500 - Flags: review?(jasone)
Attachment #646500 - Flags: feedback?(tnn)
Depends on: 431221
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 646500 [details] [diff] [review]
disable

tnn doesn't seem to be active
Attachment #646500 - Flags: feedback?(tnn) → feedback?(martin)
Looks good (we are about to desupport netbsd-4, which is the last release with old malloc)
Attachment #646500 - Flags: feedback?(martin) → feedback+
Comment on attachment 646500 [details] [diff] [review]
disable

Trying a person working on jemalloc3. This change is for old version, systems using 3.0.0 should probably follow bug 788955.

http://svnweb.freebsd.org/base/stable/9/lib/libc/stdlib/malloc.c
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdlib/jemalloc.c
Attachment #646500 - Flags: review?(jasone) → review?(mh+mozilla)
Comment on attachment 646500 [details] [diff] [review]
disable

Review of attachment 646500 [details] [diff] [review]:
-----------------------------------------------------------------

jemalloc is not the system malloc on older FreeBSD and NetBSD, is it? It would be better to check for the right versions
Attachment #646500 - Flags: review?(mh+mozilla) → review-
For NetBSD that would be: #if __NetBSD_Version__ >= 500000000
(In reply to Mike Hommey [:glandium] from comment #5)
> jemalloc is not the system malloc on older FreeBSD and NetBSD, is it? It
> would be better to check for the right versions

Despite bug 784029, bug 784058 and lots of other cleanups? I'd better not clutter ifdefs with versions past expirage. NetBSD 4.x is yet to be desupported, so I've added version check for it.
Attachment #646500 - Attachment is obsolete: true
Attachment #659728 - Flags: review?(mh+mozilla)
Attachment #659728 - Flags: review?(mh+mozilla) → review+
https://hg.mozilla.org/mozilla-central/rev/4cc688fe4e5d
Assignee: nobody → jbeich
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: