Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
change init size of global toscan stack to 64kB
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Jan 15, 2015
1 parent d4371e1 commit 58a69af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gc/gc.d
Original file line number Diff line number Diff line change
Expand Up @@ -2360,7 +2360,8 @@ struct Gcx
private:
void grow()
{
immutable ncap = _cap ? 2 * _cap : PAGESIZE / Range.sizeof;
enum initSize = 64 * 1024; // Windows VirtualAlloc granularity
immutable ncap = _cap ? 2 * _cap : initSize / Range.sizeof;
auto p = cast(Range*)os_mem_map(ncap * Range.sizeof);
if (p is null) onOutOfMemoryError();
if (_p !is null)
Expand Down

0 comments on commit 58a69af

Please sign in to comment.