git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v1] load_cache_entries_threaded: remove unused src_offset parameter

From
Jeff King <peff@peff.net>
Date
Oct 23, 2018, 20:07 UTC
Message-ID
<20181023200730.GB15214@sigill.intra.peff.net>
In-Reply-To
<7a359876-7d36-5d01-5f47-76ef316b6386@gmail.com>
On Tue, Oct 23, 2018 at 03:13:06PM -0400, Ben Peart wrote:
Show 7 quoted lines
> At one point I also had the additional #ifndef NO_PTHREADS lines but it was
> starting to get messy with the threaded vs non-threaded code paths so I
> removed them.  I'm fine with which ever people find more readable.
> 
> It does make me wonder if there are still platforms taking new build of git
> that don't support threads.  Do we still need to write/test/debug/read
> through the single threaded code paths?
I think the classic offenders here were old Unix systems like AIX, etc.

I've no idea what the current state is on those platforms. I would love it if we could drop NO_PTHREADS. There's a lot of gnarly code there, and I strongly suspect a lot of bugs lurk in the non-threaded halves (e.g., especially around bits like "struct async" which is "maybe a thread, and maybe a fork" depending on your system, which introduces all kinds of subtle process-state dependencies).

But I'm not really sure how to find out aside from adding a deprecation warning and seeing if anybody screams.

See also this RFC from Duy, which might at least make the code itself a little easier to follow:

	https://public-inbox.org/git/20181018180522.17642-1-pclouds@gmail.com/
-Peff
Previous: Ben Peart
Message 5 of 5 in “load_cache_entries_threaded: remove unused src_offset parameter”
  1. load_cache_entries_threaded: remove unused src_offset parameterBen Peart, Oct 22, 2018
  2. Jeff KingOct 22, 2018
  3. Junio C HamanoOct 22, 2018
  4. Ben PeartOct 23, 2018
  5. Jeff KingOct 23, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.