2012/3/25 Jeremy Evans <[email protected]>:
> On Sat, Mar 24, 2012 at 1:53 PM, Stuart Cassoff <[email protected]> wrote:
>> The problem seems to be something with timeouts.
>> Maybe select() related?
>
> I've also seen a ruby 1.9 regress failure related to select after the
> upgrade to rthreads. I haven't had time to look into it yet, though.
While on the topic of threading ports, I made a patch for the erlang port:
When starting "erl" with this port, it prints -> [smp:2:2] [rq:2] on a
dual-core as expected
Only tested on amd64.
Hope gmail won't make the diff all worthless. It's easy enough to
retype I think.
I have verified that a 2-core laptop does fibonaccis twice as fast
with this patch, have no idea how to test it more than this (ie. I
don't have a decent ejabberd or other env. to haunt, the port doesn't
have a regress target)
cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /home/cvsync/cvs/ports/lang/erlang/Makefile,v
retrieving revision 1.46
diff -u -r1.46 Makefile
--- Makefile 23 Dec 2011 13:40:13 -0000 1.46
+++ Makefile 26 Mar 2012 07:55:14 -0000
@@ -6,6 +6,7 @@
DISTNAME= otp_src_${V}
PKGNAME= erlang-14b.04
EPOCH= 0
+REVISION= 0
CATEGORIES= lang
# Erlang Public License
@@ -32,7 +33,7 @@
--enable-threads \
--enable-kernel-poll \
--disable-hipe \
- --disable-smp-support
+ --enable-smp-support
USE_GMAKE= Yes
USE_GROFF = Yes
cvs diff: Diffing patches
cvs diff: Diffing pkg
Index: pkg/PLIST
===================================================================
RCS file: /home/cvsync/cvs/ports/lang/erlang/pkg/PLIST,v
retrieving revision 1.21
diff -u -r1.21 PLIST
--- pkg/PLIST 23 Dec 2011 13:40:13 -0000 1.21
+++ pkg/PLIST 22 Mar 2012 19:49:06 -0000
@@ -191,6 +191,7 @@
lib/erlang/${ERTS}/
lib/erlang/${ERTS}/bin/
@bin lib/erlang/${ERTS}/bin/beam
+@bin lib/erlang/${ERTS}/bin/beam.smp
@bin lib/erlang/${ERTS}/bin/child_setup
@bin lib/erlang/${ERTS}/bin/ct_run
@bin lib/erlang/${ERTS}/bin/dialyzer
--
To our sweethearts and wives. May they never meet. -- 19th century toast