Re: [PATCH 1/2] Make xmalloc and xrealloc thread-safe
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 24, 2010, 18:44 UTC
- Message-ID
- <7vaatxk19e.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <ec874dac1003241122s3d592f26n1b23d23144939218@mail.gmail.com>
Shawn Pearce <spearce@spearce.org> writes:
> I thought pack-objects did all object access from the main thread and > only delta searches on the worker threads?
Hmm, you lost me. try_delta() is the one that reads the data out of either loose object or from an existing pack for comparison lazily, and that is what each worker thread runs repeatedly in find_deltas()...