Opened 9 years ago

Closed 7 years ago

#203 closed enhancement (wontfix)

Grow heaps and stacks automatically

Reported by: benl Owned by:
Priority: normal Milestone: 0.3.0
Component: Runtime System Version: 0.1.2
Keywords: Cc:


Right now the sizes of heaps and stacks is fixed, so if the running Disciple program uses too much it's dead. The initial heap size is currently set at 100M which should be fine for most things. Having a large initial heap is fine on modern OS's because the pages will only really be allocated the first time they're written to, and we don't zero out the heap or anything when the program starts up.

If a program wants > 100M it'll die with a OOM error, but I don't think that'll be an issue for a while. Doing proper shadow stack slot allocation would drastically reduce the memory needed by Disciple programs anyway, as we're currently treating far too many objects as roots and thus leaking a lot of space.

Change History (3)

comment:1 Changed 8 years ago by benl

  • Milestone 0.1.5 deleted

Milestone 0.1.5 deleted

comment:2 Changed 8 years ago by benl

  • Priority changed from minor to normal

comment:3 Changed 7 years ago by benl

  • Milestone set to 0.3.0
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.