summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/threads/t/join.t9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/threads/t/join.t b/ext/threads/t/join.t
index 7f8f1c8824..7e0bde0170 100644
--- a/ext/threads/t/join.t
+++ b/ext/threads/t/join.t
@@ -139,3 +139,12 @@ if ($^O eq 'linux') {
$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;
+}
+