<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/src/cache.c, branch cmn/remove-single-entry</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/'/>
<entry>
<title>Fix #3094 - improve use of portable size_t/ssize_t format specifiers.</title>
<updated>2015-07-12T17:55:19+00:00</updated>
<author>
<name>Matthew Plough</name>
<email>matt.plough@gmail.com</email>
</author>
<published>2015-06-30T23:00:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=768f8be31c3fac1b0ed8f4d49cf7176a30586443'/>
<id>768f8be31c3fac1b0ed8f4d49cf7176a30586443</id>
<content type='text'>
The header src/cc-compat.h defines portable format specifiers PRIuZ, PRIdZ, and PRIxZ. The original report highlighted the need to use these specifiers in examples/network/fetch.c.  For this commit, I checked all C source and header files not in deps/ and transitioned to the appropriate format specifier where appropriate.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The header src/cc-compat.h defines portable format specifiers PRIuZ, PRIdZ, and PRIxZ. The original report highlighted the need to use these specifiers in examples/network/fetch.c.  For this commit, I checked all C source and header files not in deps/ and transitioned to the appropriate format specifier where appropriate.
</pre>
</div>
</content>
</entry>
<entry>
<title>cache: add a check for a failed allocation</title>
<updated>2015-06-10T08:23:08+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2015-06-10T08:23:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=2d73075a41628634fa0c5572d760ad3aafffcf82'/>
<id>2d73075a41628634fa0c5572d760ad3aafffcf82</id>
<content type='text'>
Rather minimal change, but it's the kind of thing we should do.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rather minimal change, but it's the kind of thing we should do.
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor git_cache to use an rwlock</title>
<updated>2014-08-26T22:12:43+00:00</updated>
<author>
<name>Justin Spahr-Summers</name>
<email>Justin.SpahrSummers@gmail.com</email>
</author>
<published>2014-08-26T22:12:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=6a211d7c9abbddee342c353092b681b21913b2dd'/>
<id>6a211d7c9abbddee342c353092b681b21913b2dd</id>
<content type='text'>
This significantly reduces contention when many threads are trying to
read from the cache simultaneously.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This significantly reduces contention when many threads are trying to
read from the cache simultaneously.
</pre>
</div>
</content>
</entry>
<entry>
<title>util: It's called `memzero`</title>
<updated>2013-06-12T19:10:33+00:00</updated>
<author>
<name>Vicent Marti</name>
<email>tanoku@gmail.com</email>
</author>
<published>2013-06-12T19:10:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=6de9b2ee14a2393fae3ed86c5a5d12712c83b083'/>
<id>6de9b2ee14a2393fae3ed86c5a5d12712c83b083</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add safe memset and use it</title>
<updated>2013-06-07T16:54:33+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2013-06-07T16:54:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=3e9e6cdaff8acb11399736abbf793bf2d000d037'/>
<id>3e9e6cdaff8acb11399736abbf793bf2d000d037</id>
<content type='text'>
This adds a `git__memset` routine that will not be optimized away
and updates the places where I memset() right before a free() call
to use it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds a `git__memset` routine that will not be optimized away
and updates the places where I memset() right before a free() call
to use it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Mutex init can fail</title>
<updated>2013-05-31T21:13:11+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2013-05-31T21:13:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=1a42dd17eb2c35fa572418f5958595cbe297d229'/>
<id>1a42dd17eb2c35fa572418f5958595cbe297d229</id>
<content type='text'>
It is obviously quite a serious problem if this happens, but mutex
initialization can fail and we should detect it.  It's a bit like
a memory allocation failure, in that you're probably pretty screwed
if this occurs, but at least we'll catch it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is obviously quite a serious problem if this happens, but mutex
initialization can fail and we should detect it.  It's a bit like
a memory allocation failure, in that you're probably pretty screwed
if this occurs, but at least we'll catch it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Zero memory for major objects before freeing</title>
<updated>2013-05-31T21:09:58+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2013-05-31T21:09:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=f658dc433cae351e72b1c8b245724eafb43f5844'/>
<id>f658dc433cae351e72b1c8b245724eafb43f5844</id>
<content type='text'>
By zeroing out the memory when we free larger objects (i.e. those
that serve as collections of other data, such as repos, odb, refdb),
I'm hoping that it will be easier for libgit2 bindings to find
errors in their object management code.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
By zeroing out the memory when we free larger objects (i.e. those
that serve as collections of other data, such as repos, odb, refdb),
I'm hoping that it will be easier for libgit2 bindings to find
errors in their object management code.
</pre>
</div>
</content>
</entry>
<entry>
<title>Docs for git_libgit2_opts and cache disable tweak</title>
<updated>2013-05-24T17:33:41+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2013-05-24T17:33:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=2e62e7c23ce69d89d495a2c42458c7e185a3120a'/>
<id>2e62e7c23ce69d89d495a2c42458c7e185a3120a</id>
<content type='text'>
This adds docs for the cache control options to git_libgit2_opts
and also tweaks the cache code so that if the cache is disabled,
then the next time we attempt to insert something into the cache
in question, we will actually clear any old cached objects.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds docs for the cache control options to git_libgit2_opts
and also tweaks the cache code so that if the cache is disabled,
then the next time we attempt to insert something into the cache
in question, we will actually clear any old cached objects.
</pre>
</div>
</content>
</entry>
<entry>
<title>git_atomic_ssize for 64-bit atomics only on 64-bit platforms</title>
<updated>2013-04-25T17:40:33+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2013-04-25T16:52:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=eb63fda2e24d007e31742587984a30e086249d43'/>
<id>eb63fda2e24d007e31742587984a30e086249d43</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>repo: Add `git_repository__cleanup`</title>
<updated>2013-04-24T13:52:58+00:00</updated>
<author>
<name>Vicent Marti</name>
<email>tanoku@gmail.com</email>
</author>
<published>2013-04-24T13:52:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=879458e7cf87374241da300a864493761bf48e7c'/>
<id>879458e7cf87374241da300a864493761bf48e7c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
