<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/mem-pool.h, branch v2.26.1</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.26.1</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.26.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-07-03T17:58:27Z</updated>
<entry>
<title>block alloc: add validations around cache_entry lifecyle</title>
<updated>2018-07-03T17:58:27Z</updated>
<author>
<name>Jameson Miller</name>
<email>jamill@microsoft.com</email>
</author>
<published>2018-07-02T19:49:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8616a2d0cb57865540f1c00ac2e5385a6cc5d84e'/>
<id>urn:sha1:8616a2d0cb57865540f1c00ac2e5385a6cc5d84e</id>
<content type='text'>
Add an option (controlled by an environment variable) perform extra
validations on mem_pool allocated cache entries. When set:

  1) Invalidate cache_entry memory when discarding cache_entry.

  2) When discarding index_state struct, verify that all cache_entries
     were allocated from expected mem_pool.

  3) When discarding mem_pools, invalidate mem_pool memory.

This should provide extra checks that mem_pools and their allocated
cache_entries are being used as expected.

Signed-off-by: Jameson Miller &lt;jamill@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>mem-pool: fill out functionality</title>
<updated>2018-07-03T17:58:27Z</updated>
<author>
<name>Jameson Miller</name>
<email>jamill@microsoft.com</email>
</author>
<published>2018-07-02T19:49:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0e58301d8199208d1e48b9f64c4ad1089a355905'/>
<id>urn:sha1:0e58301d8199208d1e48b9f64c4ad1089a355905</id>
<content type='text'>
Add functions for:

    - combining two memory pools

    - determining if a memory address is within the range managed by a
      memory pool

These functions will be used by future commits.

Signed-off-by: Jameson Miller &lt;jamill@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>mem-pool: add life cycle management functions</title>
<updated>2018-07-03T17:58:27Z</updated>
<author>
<name>Jameson Miller</name>
<email>jamill@microsoft.com</email>
</author>
<published>2018-07-02T19:49:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=158dfeff3dc1d155b84e68b265a9b6c265717e1e'/>
<id>urn:sha1:158dfeff3dc1d155b84e68b265a9b6c265717e1e</id>
<content type='text'>
Add initialization and discard functions to mem_pool type. As the
memory allocated by mem_pool can now be freed, we also track the large
allocations.

If the there are existing mp_blocks in the mem_poo's linked list of
mp_blocksl, then the mp_block for a large allocation is inserted
behind the head block. This is because only the head mp_block is considered
when searching for availble space. This results in the following
desirable properties:

1) The mp_block allocated for the large request will not be included
not included in the search for available in future requests, the large
mp_block is sized for the specific request and does not contain any
spare space.

2) The head mp_block will not bumped from considation for future
memory requests just because a request for a large chunk of memory
came in.

These changes are in preparation for a future commit that will utilize
creating and discarding memory pool.

Signed-off-by: Jameson Miller &lt;jamill@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>mem-pool: move reusable parts of memory pool into its own file</title>
<updated>2018-04-12T02:55:20Z</updated>
<author>
<name>Jameson Miller</name>
<email>jamill@microsoft.com</email>
</author>
<published>2018-04-11T18:37:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=065feab4ebc8e160ab025ff351d724aeda3623ad'/>
<id>urn:sha1:065feab4ebc8e160ab025ff351d724aeda3623ad</id>
<content type='text'>
This moves the reusable parts of the memory pool logic used by
fast-import.c into its own file for use by other components.

Signed-off-by: Jameson Miller &lt;jamill@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
