The NetBSD Project

CVS log for src/external/bsd/jemalloc/dist/src/jemalloc.c

[BACK] Up to [cvs.NetBSD.org] / src / external / bsd / jemalloc / dist / src

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.12 / (download) - annotate - [select for diffs], Wed Jul 5 10:57:33 2023 UTC (7 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +0 -10 lines
Diff to previous 1.11 (colored)

Revert "jemalloc: Enforce alignment-must-divide-size rule of aligned_alloc."

Apparently this restriction was lifted in C17, and this was even
documented in a part of the man page I didn't notice because I got
stuck at the incomplete sentence `The aligned_alloc function conforms
to.'.  Sorry for the noise, folks.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jul 4 15:06:28 2023 UTC (7 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.10: +10 -0 lines
Diff to previous 1.10 (colored)

jemalloc: Enforce alignment-must-divide-size rule of aligned_alloc.

C11, Sec. 7.22.3.1 The aligned_alloc function, paragraph 2, p. 348:

   The value of alignment shall be a valid alignment supported by the
   implementation and the value of size shall be an integral multiple
   of alignment.

posix_memalign does not appear to have any corresponding constraint.

XXX pullup-10

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jul 1 06:29:14 2023 UTC (7 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.9: +0 -5 lines
Diff to previous 1.9 (colored)

jemalloc: enable lint again, it is no longer broken

Since today, lint handles unnamed struct/union correctly.

Revision 1.9 / (download) - annotate - [select for diffs], Fri May 15 14:37:21 2020 UTC (3 years, 9 months ago) by joerg
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.8: +14 -4 lines
Diff to previous 1.8 (colored)

Hook up proper fork lock handling for malloc:
- lock all relevant mutexes just before fork
- unlock all mutexes just after fork in the parent
- full reinit non-spinlocks in the child
This is not using the normal pthread_atfork interface to ensure order of
operation, malloc is used as implementation detail too often.

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 07:46:02 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.7.2.2: +3 -0 lines
Diff to previous 1.7.2.2 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Thu Oct 3 17:29:33 2019 UTC (4 years, 4 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.7: +3 -0 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Pull up following revision(s) (requested by christos in ticket #278):

	external/bsd/jemalloc/dist/src/jemalloc.c: revision 1.8

realloc(ptr, 0) != { free(ptr); return NULL; }
    http://www.open-std.org/jtc1/sc22/wg14/www/docs/summary.htm#dr_400

Revision 1.8 / (download) - annotate - [select for diffs], Thu Oct 3 16:10:23 2019 UTC (4 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp
Changes since 1.7: +3 -0 lines
Diff to previous 1.7 (colored)

realloc(ptr, 0) != { free(ptr); return NULL; }
    http://www.open-std.org/jtc1/sc22/wg14/www/docs/summary.htm#dr_400

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Mon Jun 10 21:44:55 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.7.2.1: +3383 -0 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored)

Sync with HEAD

Revision 1.7.2.1, Thu Mar 14 21:49:32 2019 UTC (4 years, 11 months ago) by christos
Branch: phil-wifi
Changes since 1.7: +0 -3383 lines
FILE REMOVED

file jemalloc.c was added on branch phil-wifi on 2019-06-10 21:44:55 +0000

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 14 21:49:32 2019 UTC (4 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: phil-wifi, netbsd-9
Changes since 1.6: +1 -6 lines
Diff to previous 1.6 (colored)

revert previous sshd hack (from Rin Okuyama)

Revision 1.6 / (download) - annotate - [select for diffs], Tue Mar 12 15:13:25 2019 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.5: +46 -15 lines
Diff to previous 1.5 (colored)

- descend to build libjemalloc
- namespace protect all functions __je
- provide getters and setters for malloc_conf and malloc_message

Revision 1.5 / (download) - annotate - [select for diffs], Sun Mar 10 19:34:30 2019 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

Add noreturn where needed. In the prof case because of cassert() and return
in some functions we disable the cassert() for clang. We should really have
a JEMALLOC_PROF_NORETURN and a way to mark the remaining of the function
unreachable.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Mar 10 10:00:29 2019 UTC (4 years, 11 months ago) by kamil
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

Rename je_mallctltomib to je_mallctlnametomib

This unbreaks the build.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Mar 10 02:49:52 2019 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.2: +21 -0 lines
Diff to previous 1.2 (colored)

Make the non-standard jemalloc api weak.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 4 17:18:27 2019 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.1: +49 -39 lines
Diff to previous 1.1 (colored)

- fix for shadowing
- add unconst
- add hack for broken lint
- add cast for ctype macros
- disable realloc(ptr, 0) returning NULL for non-NULL ptr (compatibility)

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Mon Mar 4 17:10:23 2019 UTC (4 years, 11 months ago) by christos
Branch: JASONE
CVS Tags: jemalloc-5-1-0
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

import jemalloc-5.1.0

Revision 1.1 / (download) - annotate - [select for diffs], Mon Mar 4 17:10:23 2019 UTC (4 years, 11 months ago) by christos
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>