From 743560f8af768a65e6f286fecf80b6ebd91be812 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 15 Jan 2011 11:54:15 +0000 Subject: sleepy_penguin 1.2.0 - epoll GC help One convenience fix: epoll: prevent IO objects from getting GC-ed Users of our code may forget to keep references for their IO objects at all, and since it's not possible for GC to mark kernel memory, we just hold on to the IO objects for them. We can't unmark close()d file descriptors, ever, so we don't bother with the EPOLL_CTL_DEL case, either. Just storing IO objects in an array using the raw descriptor as a key will allow bounded space usage just like the in-kernel FD tables as long as the user remembers to close descriptors themselves. --- GIT-VERSION-GEN | 2 +- lib/sleepy_penguin.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index 432f3c0..b89cbb0 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -1,7 +1,7 @@ #!/bin/sh GVF=GIT-VERSION-FILE -DEF_VER=v1.1.1.GIT +DEF_VER=v1.2.0.GIT LF=' ' diff --git a/lib/sleepy_penguin.rb b/lib/sleepy_penguin.rb index 082fce5..2691926 100644 --- a/lib/sleepy_penguin.rb +++ b/lib/sleepy_penguin.rb @@ -1,7 +1,7 @@ # -*- encoding: binary -*- module SleepyPenguin - # the version of sleepy_penguin, currently 1.1.1 - SLEEPY_PENGUIN_VERSION = '1.1.1' + # the version of sleepy_penguin, currently 1.2.0 + SLEEPY_PENGUIN_VERSION = '1.2.0' end require 'sleepy_penguin_ext' -- cgit v1.2.3-24-ge0c7