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

Re: [PATCH 1/6] Add memory pool library

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Jun 7, 2010, 14:35 UTC
Message-ID
<AANLkTilorbTSy0Va7wX2BauiiVlAEUdzDi87DNF-SGNP@mail.gmail.com>
In-Reply-To
<AANLkTimd_l0uKHTqgS211fv30hxd-k0pR55YoY4xCua1@mail.gmail.com>
Hi Erik,
Erik Faye-Lund wrote:
Show 5 quoted lines
> On Mon, Jun 7, 2010 at 3:28 PM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
> Adding a win32-implementation of sysconf for this purpose isn't
> tricky, but perhaps it's a little bit overkill. Can't we just use some
> large power of two number? Hopefully, we could chose a size that is a
> multiple of the page-size on all systems...

Until an alternative is ready, I'll just use a large power of two and roll out another revision.

> Anyway, this is roughly what a Windows-implementation of sysconf would
> look like (not tested - only checked that it compiles):

Thanks for implementing this. Unfortunately, I don't have a Windows box to test this- why don't you send a patch to the list and sign it off? While I agree that just implementing sysconf for _SC_PAGESIZE is an overkill, others can test and extend the code.

-- Ram
Previous: Erik Faye-LundNext: Ramkumar Ramachandra
Message 6 of 15 in “Merge David's SVN exporter”
  1. 0/6 Merge David's SVN exporterRamkumar Ramachandra, Jun 4, 2010
  2. 1/6 Add memory pool libraryRamkumar Ramachandra, Jun 4, 2010
  3. Jonathan NiederJun 4, 2010
  4. Ramkumar RamachandraJun 7, 2010
  5. Erik Faye-LundJun 7, 2010
  6. Ramkumar RamachandraJun 7, 2010
  7. 2/6 Add cpp macro implementation of treapsRamkumar Ramachandra, Jun 4, 2010
  8. 3/6 Add library for string-specific memory poolRamkumar Ramachandra, Jun 4, 2010
  9. 4/6 Add stream helper libraryRamkumar Ramachandra, Jun 4, 2010
  10. Jonathan NiederJun 4, 2010
  11. 5/6 Add infrastructure to write revisions in fast-export formatRamkumar Ramachandra, Jun 4, 2010
  12. Jonathan NiederJun 4, 2010
  13. Ramkumar RamachandraJun 7, 2010
  14. David Michael BarrJun 7, 2010
  15. 6/6 Add SVN dump parserRamkumar Ramachandra, Jun 4, 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.