sleepy_penguin RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [sleepy.penguin] [ANN] sleepy_penguin 3.3.0 - fixes and compatibility improvements
@ 2013-12-30  1:34  5% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2013-12-30  1:34 UTC (permalink / raw)
  To: sleepy.penguin

Changes:

Most notably, this fixes memory leaks for any users of inotify
reads, epoll/kevent waiting using short-lived thread.  Users of
long-lived threads for these functions (all Rainbows!, yahns, and
zbatery users) are not affected.  A fair amount of internal cleanup
was necessary for this.

Compatibility with non-Linux systems without clock_gettime is
improved, thanks to Lin Jen-Shin.

Note: the kevent code is not at all optimized and still uses
RARRAY_PTR, so it likely sucks under rbx and MRI 2.1.

Eric Wong (13):
      test_epoll: minor compatibility fix for Ruby 2.1.0
      avoid RARRAY_PTR usage for Linux-only bits
      init: avoid redefinition warning for _GNU_SOURCE
      Rakefile: kill raa_update task
      util: minor cleanup to favor rb_io_get_io
      tests: switch to minitest
      test_epoll: switch test_dup_and_fork to exit!
      remove all signalfd-related files
      tests: remove version-dependent FD_CLOEXEC checks
      work around lack of rb_io_get_io in Rubinius
      value2timespec: use StringValueCStr for correctness
      refactor and fix leak from thread-local storage use
      extconf: avoid unnecessary linkage against libkqueue

Lin Jen-Shin (1):
      Support for broken system without clock_gettime.

* http://bogomips.org/sleepy_penguin/
* sleepy.penguin@librelist.org
* git://bogomips.org/sleepy_penguin.git
* http://bogomips.org/sleepy_penguin/NEWS.atom.xml


^ permalink raw reply	[relevance 5%]

* [sleepy.penguin] [PATCH] work around lack of rb_io_get_io in Rubinius
@ 2013-11-21 18:48  7% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2013-11-21 18:48 UTC (permalink / raw)
  To: sleepy.penguin

https://github.com/rubinius/rubinius/issues/2771
---
 ext/sleepy_penguin/util.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/ext/sleepy_penguin/util.c b/ext/sleepy_penguin/util.c
index 9d2123f..2c17e1a 100644
--- a/ext/sleepy_penguin/util.c
+++ b/ext/sleepy_penguin/util.c
@@ -1,5 +1,13 @@
 #include "sleepy_penguin.h"
 
+#ifndef HAVE_RB_IO_GET_IO
+static VALUE my_io_get_io(VALUE io)
+{
+	return rb_convert_type(io, T_FILE, "IO", "to_io");
+}
+#  define rb_io_get_io(io) my_io_get_io((io))
+#endif /* HAVE_RB_IO_GET_IO */
+
 static VALUE klass_for(VALUE klass)
 {
 	return (TYPE(klass) == T_CLASS) ? klass : CLASS_OF(klass);
-- 
1.8.5.rc2.1.g2f4e96a



^ permalink raw reply related	[relevance 7%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2013-11-21 18:48  7% [sleepy.penguin] [PATCH] work around lack of rb_io_get_io in Rubinius Eric Wong
2013-12-30  1:34  5% [sleepy.penguin] [ANN] sleepy_penguin 3.3.0 - fixes and compatibility improvements Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/sleepy_penguin.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).