Skip to content

Instantly share code, notes, and snippets.

@FROGGS

FROGGS/threads.t Secret

Created August 5, 2013 17:53
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 FROGGS/3db2bca4a188a2c1b592 to your computer and use it in GitHub Desktop.
Save FROGGS/3db2bca4a188a2c1b592 to your computer and use it in GitHub Desktop.
1..6
ok 1 - Can create a thread and it runs in parallel
ok 2 - Thread can access outer lexicals
ok 3 - Can join a thread
ok 4 - Can start and join multiple threads
ok 5 - Multiple allocating threads work (threads + GC interaction)
Can't free STables in gen2 GC yet
not ok 6 - Multiple allocating threads work (large heap usage)
GOT:
Before new threads
In new thread
In new thread
In new thread
In new thread
EXPECTED:
Before new threads
In new thread
In new thread
In new thread
In new thread
Lived until after joins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment