From: "Marcus Holland-Moritz" <mhx-perl@gmx.net>
Message-ID: <
044101c371d0$f39b3fc0$0c2f1fac@R2D2>
p4raw-id: //depot/perl@21009
$ok++ if($@ =~/Thread already joined/);
ok($ok, "Double join works");
}
+
+{
+ # The "use IO" is not actually used for anything; its only purpose is to
+ # incite a lot of calls to newCONSTSUB. See the p5p archives for
+ # the thread "maint@20974 or before broke mp2 ithreads test".
+ use IO;
+ $_->join for map threads->new(sub{ok($_, "stress newCONSTSUB")}), 1..2;
+}
+