<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libc/stdlib/malloc.c, branch release/6.0.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F6.0.0_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F6.0.0_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2005-11-03T00:35:26Z</updated>
<entry>
<title>This commit was manufactured by cvs2svn to create tag</title>
<updated>2005-11-03T00:35:26Z</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>2005-11-03T00:35:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3640cb54210edbb7edbf1b12ef0127ecfcea967d'/>
<id>urn:sha1:3640cb54210edbb7edbf1b12ef0127ecfcea967d</id>
<content type='text'>
'RELENG_6_0_0_RELEASE'.

This commit was manufactured to restore the state of the 6.0-RELEASE image.
</content>
</entry>
<entry>
<title>Take a step closer to the release and turn off malloc debugging.</title>
<updated>2005-09-18T03:45:24Z</updated>
<author>
<name>Scott Long</name>
<email>scottl@FreeBSD.org</email>
</author>
<published>2005-09-18T03:45:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=cc4a102d2bc56f1825ac85bd182df59defcacb6d'/>
<id>urn:sha1:cc4a102d2bc56f1825ac85bd182df59defcacb6d</id>
<content type='text'>
Approved by: re (implicit)
</content>
</entry>
<entry>
<title>Remove the check about whether MALLOC_EXTRA_SANITY is defined,</title>
<updated>2005-02-27T17:16:16Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2005-02-27T17:16:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2dcb9ce484562f6c0600eb477c119e63105bfaba'/>
<id>urn:sha1:2dcb9ce484562f6c0600eb477c119e63105bfaba</id>
<content type='text'>
surrounding the undef'ing it.  It does not seem necessary to
undef some symbol that is not exist, and gcc does not complain
about whether a symbol is exist before #undef'ing it out.

Spotted by:	mingyanguo via ChinaUnix.net forum
Reviewed by:	phk
</content>
</entry>
<entry>
<title>Consistently use __inline instead of __inline__ as the former is an empty macro</title>
<updated>2004-07-04T16:11:03Z</updated>
<author>
<name>Stefan Farfeleder</name>
<email>stefanf@FreeBSD.org</email>
</author>
<published>2004-07-04T16:11:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=5908d366fb365362004d549066a6225f0c46d3e6'/>
<id>urn:sha1:5908d366fb365362004d549066a6225f0c46d3e6</id>
<content type='text'>
in &lt;sys/cdefs.h&gt; for compilers without support for inline.
</content>
</entry>
<entry>
<title>Define malloc_pageshift and malloc_minsize for arm.</title>
<updated>2004-05-14T11:50:51Z</updated>
<author>
<name>Olivier Houchard</name>
<email>cognet@FreeBSD.org</email>
</author>
<published>2004-05-14T11:50:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=57734c02cd291e4add4af423c1adb2cc9f672459'/>
<id>urn:sha1:57734c02cd291e4add4af423c1adb2cc9f672459</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rearrange (centralize) initialization of mallocs internals to always be</title>
<updated>2004-03-07T20:41:27Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2004-03-07T20:41:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7594cde0322d5f8f63fb78ef870f470dc8f5a569'/>
<id>urn:sha1:7594cde0322d5f8f63fb78ef870f470dc8f5a569</id>
<content type='text'>
done before the first call, even if this is a malloc(0) call.

PR:	62859
</content>
</entry>
<entry>
<title>Remove the triplicity in the public functions by vectoring them all</title>
<updated>2004-02-21T09:14:38Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2004-02-21T09:14:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1b105d0c6eb41267dea66827458b2a34cac97811'/>
<id>urn:sha1:1b105d0c6eb41267dea66827458b2a34cac97811</id>
<content type='text'>
through a realloc like function.

Make the malloc_active variable a local static to this new function.

Don't warn about recursion more than once per base call.

constify malloc_func.
</content>
</entry>
<entry>
<title>Move the check for sensitive processes to the point where the exception</title>
<updated>2004-02-21T08:55:38Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2004-02-21T08:55:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=10440821849e49e78d66be3d92eb8e30e4d0b99a'/>
<id>urn:sha1:10440821849e49e78d66be3d92eb8e30e4d0b99a</id>
<content type='text'>
has been hit, this makes it cover more cases.

Call the message function directly rather than fiddle with flag-saving
when we find an unknown character in our options.

The 'A' flag should not trigger on legal out of memory conditions.
</content>
</entry>
<entry>
<title>Do not adjust to the pagesize at runtime. Besides for the one-time</title>
<updated>2003-11-28T18:03:22Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2003-11-28T18:03:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=fd7707aa509adeece052f27eee59225590e63931'/>
<id>urn:sha1:fd7707aa509adeece052f27eee59225590e63931</id>
<content type='text'>
initialization overhead, there's a problem in that we never call
imalloc() and thus malloc_init() for zero-sized allocations. As a
result, malloc(0) returns NULL when it's the first or only malloc in
the program. Any non-zero allocation will initialize the malloc code
with the side-effect that subsequent zero-sized allocations return a
non-NULL pointer. This is because the pointer we return for zero-
sized allocations is calculated from malloc_pageshift, which needs
to be initialized at runtime on ia64.

The result of the inconsistent behaviour described above is that
configure scripts failed the test for a GNU compatible malloc. This
resulted in a lot of broken ports.

Other, even simpler, solutions were possible as well:
1.  initialize malloc_pageshift with some non-zero value (say 13 for
    8KB pages) and keep the runtime adjustment.
2.  Stop using malloc_pageshift to calculate ZEROSIZEPTR.

Removal of the runtime adjustment was chosen because then ia64 is the
same as any other platform. It is not to say that using a page size
obtained at runtime is bad per se. It's that there's currently a high
level of gratuity for its existence and the moment it causes problems
is the moment you need to get rid of it. Hence, it's not unthinkable
that this commit is (partially) reverted some time in the future when
we do have a good reason for it and a good way to achieve it.

Approved by: re@ (rwatson)
Reported by: kris (portmgr@) -- may the ports be with you
</content>
</entry>
<entry>
<title>Externalize malloc's spinlock so that a thread library can take</title>
<updated>2003-11-04T19:49:56Z</updated>
<author>
<name>Daniel Eischen</name>
<email>deischen@FreeBSD.org</email>
</author>
<published>2003-11-04T19:49:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=358702366c7f1153b632164a0ebbbc2e54609c72'/>
<id>urn:sha1:358702366c7f1153b632164a0ebbbc2e54609c72</id>
<content type='text'>
it around an application's fork() call.  Our new thread libraries
(libthr, libpthread) can now have threads running while another
thread calls fork().  In this case, it is possible for malloc
to be left in an inconsistent state in the child.  Our thread
libraries, libpthread in particular, need to use malloc internally
after a fork (in the child).

Reviewed by:	davidxu
</content>
</entry>
</feed>
