<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/stdlib/malloc.c, branch OPENBSD_7_9_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-10-23T18:49:46+00:00</updated>
<entry>
<title>Revert r1.286 now that all supported platforms have __builtin_clz.</title>
<updated>2025-10-23T18:49:46+00:00</updated>
<author>
<name>miod</name>
<email></email>
</author>
<published>2025-10-23T18:49:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5a2688fe0c33fbd28683a16e5b2e580a49d6cdf5'/>
<id>urn:sha1:5a2688fe0c33fbd28683a16e5b2e580a49d6cdf5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>&lt;uvm/uvmexp.h&gt; is clearly only for VM_MALLOC_CONF, but &lt;sys/sysctl.h&gt; takes</title>
<updated>2025-06-12T16:07:09+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2025-06-12T16:07:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bef775ccefd97b9e2ee02eb252923ac7d27bfbdc'/>
<id>urn:sha1:bef775ccefd97b9e2ee02eb252923ac7d27bfbdc</id>
<content type='text'>
care of doing that include.
</content>
</entry>
<entry>
<title>When commons were deprecated, noone noticed that malloc_options in static</title>
<updated>2025-05-23T00:40:05+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2025-05-23T00:40:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5afc322de251083f4ccbab856f6e967161f647d6'/>
<id>urn:sha1:5afc322de251083f4ccbab856f6e967161f647d6</id>
<content type='text'>
binaries had become unlinkable. Change the libc definition to weak to solve
that, and to "const char * const" so that noone will try to set it late.
It must be stable before the first malloc() call, which could be before
main()...
discussion with otto, kettenis, tedu
</content>
</entry>
<entry>
<title>remove unneeded semicolons; checked by millert@</title>
<updated>2024-09-20T02:00:46+00:00</updated>
<author>
<name>jsg</name>
<email></email>
</author>
<published>2024-09-20T02:00:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bd425e27ad9c9e978ee7a877656733f4742e01cc'/>
<id>urn:sha1:bd425e27ad9c9e978ee7a877656733f4742e01cc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>In _malloc_init(), round up the region being mprotected RW to the malloc</title>
<updated>2024-03-30T07:50:39+00:00</updated>
<author>
<name>miod</name>
<email></email>
</author>
<published>2024-03-30T07:50:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8143a448d024badc2a56ebfe72a89ac13322fdea'/>
<id>urn:sha1:8143a448d024badc2a56ebfe72a89ac13322fdea</id>
<content type='text'>
page size, rather than relying upon mprotect to round up to the actual mmu
page size.

This repairs malloc operation on systems where the malloc page size
(1 &lt;&lt; _MAX_PAGE_SHIFT) is larger than the mmu page size.

ok otto@
</content>
</entry>
<entry>
<title>A small cleanup of malloc_bytes(), getting rid of a goto and a tiny</title>
<updated>2023-12-19T06:59:28+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2023-12-19T06:59:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5dc95088574e1b1728bad15b9ccd124fa087af3b'/>
<id>urn:sha1:5dc95088574e1b1728bad15b9ccd124fa087af3b</id>
<content type='text'>
bit of optimization; ok tb@ asou@
</content>
</entry>
<entry>
<title>Save backtraces to show in leak dump. Depth of backtrace set by</title>
<updated>2023-12-04T07:01:45+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2023-12-04T07:01:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1589284523a88647318588e6ee3aaa968b3bc5e1'/>
<id>urn:sha1:1589284523a88647318588e6ee3aaa968b3bc5e1</id>
<content type='text'>
malloc option D (aka 1), 2, 3 or 4.  No performance impact if not
used.  ok asou@
</content>
</entry>
<entry>
<title>KNF plus fixed a few signed vs unsigned compares (that we actually</title>
<updated>2023-11-04T11:02:35+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2023-11-04T11:02:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9d9be26fe9abf46c700db1d1733714cdb7467174'/>
<id>urn:sha1:9d9be26fe9abf46c700db1d1733714cdb7467174</id>
<content type='text'>
not real problems)
</content>
</entry>
<entry>
<title>A few micro-optimizations; ok asou@</title>
<updated>2023-10-26T17:59:16+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2023-10-26T17:59:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1d0513e3429bb2c7d03ecaa05238a76da6ebc5dd'/>
<id>urn:sha1:1d0513e3429bb2c7d03ecaa05238a76da6ebc5dd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>When option D is active, store callers for all chunks; this avoids</title>
<updated>2023-10-22T12:19:26+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2023-10-22T12:19:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5fb161ca99c3827ce96bd2eafb54ade287c31caf'/>
<id>urn:sha1:5fb161ca99c3827ce96bd2eafb54ade287c31caf</id>
<content type='text'>
the 0x0 call sites for leak reports. Also display more info on
detected write of free chunks: print the info about where the chunk
was allocated, and for the preceding chunk as well.
ok asou@
</content>
</entry>
</feed>
