<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/src/allocators/stdalloc.c, branch ethomson/gitstr</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/'/>
<entry>
<title>Update src/allocators/stdalloc.c</title>
<updated>2021-07-20T12:25:59+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2021-07-20T12:25:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=b0980dcfb35fe1c8f783001296b4fea6b7373058'/>
<id>b0980dcfb35fe1c8f783001296b4fea6b7373058</id>
<content type='text'>
Co-authored-by: lhchavez &lt;lhchavez@lhchavez.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: lhchavez &lt;lhchavez@lhchavez.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>alloc: add GIT_DEBUG_STRICT_ALLOC</title>
<updated>2021-07-19T19:41:44+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2021-07-19T19:41:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=48e6b02be9b0639fdc25e17514f11d7ef141dfbc'/>
<id>48e6b02be9b0639fdc25e17514f11d7ef141dfbc</id>
<content type='text'>
Add `GIT_DEBUG_STRICT_ALLOC` to help identify problematic callers of
allocation code that pass a `0` size to the allocators and then expect a
non-`NULL` return.

When given a 0-size allocation, `malloc` _may_ return either a `NULL`
_or_ a pointer that is not writeable.  Most systems return a non-`NULL`
pointer; AIX is an outlier.  We should be able to cope with this AIXy
behavior, so this adds an option to emulate it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add `GIT_DEBUG_STRICT_ALLOC` to help identify problematic callers of
allocation code that pass a `0` size to the allocators and then expect a
non-`NULL` return.

When given a 0-size allocation, `malloc` _may_ return either a `NULL`
_or_ a pointer that is not writeable.  Most systems return a non-`NULL`
pointer; AIX is an outlier.  We should be able to cope with this AIXy
behavior, so this adds an option to emulate it.
</pre>
</div>
</content>
</entry>
<entry>
<title>allocators: move standard allocator into subdirectory</title>
<updated>2019-02-21T11:28:02+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2019-02-21T11:13:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=b63396b75fe26afa3b27259c0d13dd7bc13b53ba'/>
<id>b63396b75fe26afa3b27259c0d13dd7bc13b53ba</id>
<content type='text'>
Right now, our two allocator implementations are scattered around
the tree in "stdalloc.h" and "win32/w32_crtdbg_stacktrace.h".
Start grouping them together in a single directory "allocators/",
similar to how e.g. our streams are organized.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Right now, our two allocator implementations are scattered around
the tree in "stdalloc.h" and "win32/w32_crtdbg_stacktrace.h".
Start grouping them together in a single directory "allocators/",
similar to how e.g. our streams are organized.
</pre>
</div>
</content>
</entry>
</feed>
