Re: Segfault in the attr stack
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jun 2, 2016, 01:02 UTC
- Message-ID
- <CACsJy8A4gXRyx4LpBmM2Y=n2KB0NurKMiW42-tPnU7K89qj5bw@mail.gmail.com>
- In-Reply-To
- <CAPc5daXuQAeWvJAciRA_Kzyoxa=atEntGzKhqzjiN+ho6TnQyg@mail.gmail.com>
On Thu, Jun 2, 2016 at 5:17 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
> Gaah, of course. > > This is coming from the cache preload codepath, where multiple threads > try to run ce_path_match(). > It used to be OK because pathspec magic never looked at attributes, > but now it does, and attribute system is not thread-safe.
Off topic. I wonder if we can annotate which functions are thread-safe (minority currently in git code base, I believe) and make gcc, clang or sparse spot them in threaded code?
-- Duy