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

Re: [PATCH] fast-import: fix incomplete conversion with multiple mark files

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 8, 2020, 16:47 UTC
Message-ID
<xmqqtuzlld1d.fsf@gitster.c.googlers.com>
In-Reply-To
<alpine.DEB.2.21.2006081739520.9949@serpens>
Tibor Billes <tbilles@gmx.com> writes:
Show 9 quoted lines
> On Sat, 6 Jun 2020, brian m. carlson wrote:
>
>> When ddddf8d7e2 ("fast-import: permit reading multiple marks files",
>> 2020-02-22) converted fast-import to handle multiple marks files in
>> preparation for submodule support, the conversion was incomplete.
>...
>
> Thanks for the quickly patching it! I tested the patch and I can confirm this
> solves the memory leak for me.
Tibor, thanks for testing.

Brian, I notice that the singleton global "marks_set_count", even though the number could be counted per instance of the mark_set structure, is still singleton. I didn't bother thinking about it when I wrote my "perhaps along this line" patch, but now I read it again, I think it is OK to leave it (and other stats counters) as is, primarily because we don't have a need (yet) to show stats per mark_set. Did you leave it as a global for the same reason? Just sanity-checking.

Thanks.
Previous: Tibor BillesNext: brian m. carlson
Message 8 of 9 in “git-fast-import out of memory”
  1. Billes TiborJun 5, 2020
  2. brian m. carlsonJun 5, 2020
  3. fast-import: fix incomplete conversion with multiple mark filesbrian m. carlson, Jun 6, 2020
  4. exec: run final pipeline command in a subshell in sh modebrian m. carlson, Jun 6, 2020
  5. 0/1 Run pipeline command in subshell in sh modebrian m. carlson, Jun 6, 2020
  6. brian m. carlsonJun 6, 2020
  7. Tibor BillesJun 8, 2020
  8. Junio C HamanoJun 8, 2020
  9. brian m. carlsonJun 8, 2020

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.