support for Raindrops#size= and Raindrops#evaporate!
commite516e45640206fa3e7864938da74a7cb5ca31715
authorEric Wong <normalperson@yhbt.net>
Fri, 11 Mar 2011 02:12:37 +0000 (11 02:12 +0000)
committerEric Wong <normalperson@yhbt.net>
Fri, 11 Mar 2011 02:12:37 +0000 (11 02:12 +0000)
tree199b0eb8786ff310c81c5eb82424f8b0b893ddb3
parent61962b27a51031965cef70451d369b115868fb11
support for Raindrops#size= and Raindrops#evaporate!

This allows limited resizing of the Raindrops memory
area since we always over-allocate due to the required
page aligment for mmap.

It would be nice if mremap() worked with MAP_SHARED,
but it does not and triggers a bus error when attempting
to access the new area.

ref: https://bugzilla.kernel.org/show_bug.cgi?id=8691
ext/raindrops/extconf.rb
ext/raindrops/raindrops.c
test/test_raindrops.rb