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

Re: [PATCH] trace.c: mark file-local function static

From
Johannes Sixt <j6t@kdbg.org>
Date
Dec 21, 2010, 19:54 UTC
Message-ID
<201012212054.27054.j6t@kdbg.org>
In-Reply-To
<7vbp4f9gzh.fsf@alter.siamese.dyndns.org>
On Dienstag, 21. Dezember 2010, Junio C Hamano wrote:
Show 8 quoted lines
> A more interesting topic is why the try-to-free-pack-memory logic needs to
> be disabled in the first place.  3a09425 (Do not call release_pack_memory
> in malloc wrappers when GIT_TRACE is used, 2010-05-08) explains that it is
> to avoid a race on Windows, and it looks like a workaround not a solution
> ("can be called without locking"---"why aren't we locking then?").
>
> Not that it matters in the context of "trace", which is a debugging
> facility, that this is a workaround.

Exactly. A clean implementation is not worth the effort for this debugging facility.

BTW, these days it is not just Windows that is affected because we use threads in start_async everywhere if possible.

-- Hannes
Previous: Junio C Hamano
Message 14 of 14 in “trace.c: mark file-local function static”
  1. trace.c: mark file-local function staticVasyl', Dec 16, 2010
  2. Thiago FarinaDec 16, 2010
  3. Drew NorthupDec 20, 2010
  4. Thiago FarinaDec 20, 2010
  5. Drew NorthupDec 20, 2010
  6. Thiago FarinaDec 21, 2010
  7. Drew NorthupDec 21, 2010
  8. Thiago FarinaDec 21, 2010
  9. Nguyen Thai Ngoc DuyDec 21, 2010
  10. Drew NorthupDec 21, 2010
  11. Junio C HamanoDec 21, 2010
  12. Thiago FarinaDec 21, 2010
  13. Junio C HamanoDec 21, 2010
  14. Johannes SixtDec 21, 2010

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.