Commit [87cce4] Maximize Restore History

Release address space to the OS at gencgc_release_granularity

* Some platforms perform better on large, aligned mmap/munmap calls.
The GC will only perform such calls in chunks of
gencgc_release_granularity bytes, aligned at that many bytes.

* gencgc_release_granularity defaults to GENCGC_RELEASE_GRANULARITY,
and should always be a power of 2, as well as a multiple of the OS
page size and of GENCGC_CARD_BYTES.

* GENCGC_RELEASE_GRANULARITY defaults to BACKEND_PAGE_BYTES, making
this patch a no-op.

* Also, fix an assumption that BACKEND_PAGE_BYTES = 1024*sizeof(long)
in a safety check in gc_free_heap.

Paul Khuong Paul Khuong 2011-07-03

changed src/runtime/gencgc.c
src/runtime/gencgc.c Diff Switch to side-by-side view
Loading...