If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Remove _malloc_options abuse

RESOLVED FIXED

Status

()

Core
Memory Allocator
--
trivial
RESOLVED FIXED
10 years ago
10 years ago

People

(Reporter: Jason Evans, Assigned: Jason Evans)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

10 years ago
_malloc_options is used to set platform-specific defaults in jemalloc.c, but this causes MALLOC_OPTIONS environment variable processing to have surprising results.  In particular, it is tricky to change the number of arenas.
(Assignee)

Comment 1

10 years ago
Created attachment 319602 [details] [diff] [review]
Remove _malloc_options initialization

The attached patch removes _malloc_options initialization, and adds code to set the default number of arenas to 1.
(Assignee)

Updated

10 years ago
Attachment #319602 - Flags: review?(benjamin)

Updated

10 years ago
Attachment #319602 - Flags: review?(benjamin) → review+
(Assignee)

Comment 2

10 years ago
changeset:   15462:4de69693622b
user:        Jason Evans <jasone@canonware.com>
date:        Fri Jun 20 10:34:42 2008 -0700
summary:     Bug 432475: Remove _malloc_options abuse, r=benjamin
Status: ASSIGNED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.