Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created July 29, 2017 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogbert17/e23c3340c7d9930ec219f8eda3feb18f to your computer and use it in GitHub Desktop.
Save dogbert17/e23c3340c7d9930ec219f8eda3feb18f to your computer and use it in GitHub Desktop.
Test 51 in t/spec/S17-supply/syntax.t
# RT #128717
{
my $i = 0;
react whenever Supply.interval: 0.01 { done() if $_ == 3; $i++ }
is $i, 3, 'blockless react/whenever works';
}
# valgrind of the above
==13843== Thread 4:
==13843== Conditional jump or move depends on uninitialised value(s)
==13843== at 0x40E2824: MVM_bytecode_resolve_annotation (bytecode.c:912)
==13843== by 0x40C8120: MVM_exception_backtrace (exceptions.c:403)
==13843== by 0x40CFF34: MVM_interp_run (interp.c:3881)
==13843== by 0x40EB599: start_thread (threads.c:81)
==13843== by 0x41D4866: uv__thread_start (thread.c:49)
==13843== by 0x46A5F71: start_thread (pthread_create.c:312)
==13843== by 0x45963ED: clone (clone.S:129)
==13843==
ok 1 - blockless react/whenever works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment