Advise operating system about memory access during GC.
authorTaylor R Campbell <campbell@mumble.net>
Tue, 5 Apr 2011 00:33:40 +0000 (00:33 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Tue, 5 Apr 2011 00:33:40 +0000 (00:33 +0000)
commitf94655bec89fbc42b8c76d20275fc576f26a6925
treeedf3ed63b3d86715bebba73d2183518eaad2b033
parent78d5edb8ed13252cb48998cbdc76a19a73413019
Advise operating system about memory access during GC.

- Expect sequential access to oldspace during gc_scan_oldspace.
- Free heap pages (newspace) before copying tospace over them.
- Free tospace pages after saving tospace.

The OS hooks are implemented only for Unix, in terms of posix_madvise
and madvise.  Implementing them for Windows and/or OS/2 is left as an
exercise for the reader.
src/microcode/configure.ac
src/microcode/gcloop.c
src/microcode/memmag.c
src/microcode/nttop.c
src/microcode/os2top.c
src/microcode/ostop.h
src/microcode/uxtop.c