Matthew Flatt
3bf0f800a7
futures: make `future' work in a future, overhaul logging, fix bugs
2011-04-06 17:40:44 -06:00
Matthew Flatt
b9c4bbae67
futures: limit parallelism via custodians
...
Closes PR 11682
2011-03-15 14:43:18 -06:00
Matthew Flatt
6041833ac5
fsemaphore cleanup
...
- abstract over JIT inlining of fsemaphore operations
- fix problems with non-parallel fsemaphores
- adjust tests so they don't assume too much concurrency
- clarify fsemaphore vs. semaphore in the docs
2011-02-18 09:55:01 -07:00
James Swaine
ca5c061a71
Fix fsemaphore-try-wait? so the sema's count is decremented. Make fsemaphore-wait and other futures-related functions cooperate with the GC better.
2011-02-16 21:14:14 -06:00
James Swaine
c6642de116
Added future semaphores (fsemaphores)
2011-02-15 23:27:03 -06:00
James Swaine
19dbee0405
Added semaphores for futures
2011-02-08 17:58:02 -06:00
James Swaine
0a73a9d5a1
Added semaphores for futures
2011-02-08 17:55:12 -06:00
Matthew Flatt
da6d4f3fba
futures: fix `future' when given a non-JITted procedure
...
Merge to 5.1
2011-02-05 06:43:09 -07:00
Matthew Flatt
65ad6aee20
fix `touch' to run a suspended future in the runtime thread
...
if no future thread is running the future; also adjust the
policy for suspending a future so that even synchronized
operations can suspend if there's other work to be done;
also also fix `current-future' for nested `touch'es and when
parallel futures are disabled
2010-10-07 14:58:53 -06:00
Matthew Flatt
15302dc844
adjust futures to decouple blocked futures from worker threads
...
which required adding a notion of "lightweight continuation" to
the runtime system, where a lightweight continuation involves
only frames from JIT0generated code (so that details of the stack
layout are known, for example)
2010-10-07 07:39:16 -06:00
James Swaine
1a2c0546a6
current-future now returns #f if not inside a future, instead of null. Added documentation for current-future.
2010-08-19 09:36:25 -05:00
James Swaine
a41c9b882a
Added (current-future) to the futures module (as an inlined, nonblocking primitive).
2010-08-18 23:33:22 -05:00
Eli Barzilay
7b14a1f585
"Racunit" -> "Rackunit"
2010-05-17 12:07:32 -04:00
Eli Barzilay
939af28a4c
Some random ".ss" -> ".rkt"s
2010-05-17 05:58:19 -04:00
Jay McCarthy
645b0b06fe
Merge branch 'master' of git.racket-lang.org:plt
2010-04-30 10:57:38 -06:00
Jay McCarthy
bc5cf30ebe
Renaming rktunit to racunit
2010-04-30 10:57:32 -06:00
Matthew Flatt
7ed0d4e00a
futures: protect use of mfence by processor count
2010-04-29 17:11:42 -06:00
Jay McCarthy
f70ffca756
Renaming schemeunit to rktunit and adding compat layer
2010-04-29 15:00:02 -06:00
Matthew Flatt
28b4043077
rename all files .ss -> .rkt
2010-04-27 16:50:15 -06:00
Matthew Flatt
aec586d2be
fix a GC problem related to future and wcm; also fix a race condition related to JITing a delay-loaded procedure (and maybe specific to future-demanded JITting)
...
svn: r18739
2010-04-06 16:44:53 +00:00
Matthew Flatt
2cb9f378aa
Racket experiments
...
svn: r18725
2010-04-02 21:29:59 +00:00
Matthew Flatt
b2d65a1b95
fix the interaction of chaperones, keywords, and the whole zoo of reflective procedure operations
...
svn: r18711
2010-04-01 13:14:50 +00:00
Matthew Flatt
417be5d8e2
move definedness check for imported variable to link time instead of access time; add errortrace meta-language; tweak errortrace to avoid an unnecessary and loop-obscuring annotation; improve slightly bytecode optimizer's handling of w-c-m; improve JIT handling of w-c-m
...
svn: r18678
2010-03-30 20:21:28 +00:00
Robby Findler
ca8459a3a0
changed to schemeunit so the tests can be in a module and so we dont see random values in the printed output
...
svn: r18341
2010-02-25 21:32:48 +00:00
Robby Findler
df049ea35e
normalized the output so drdr won't say that this is changing
...
svn: r18326
2010-02-24 19:46:24 +00:00
Matthew Flatt
457a2da675
try again to fix tests
...
svn: r18223
2010-02-20 13:39:51 +00:00
Matthew Flatt
d2bdc2eca8
fix test problems
...
svn: r18221
2010-02-20 12:23:01 +00:00
James Swaine
9170687148
moved futures random tests into /collects/tests/future
...
svn: r18192
2010-02-19 19:26:55 +00:00
James Swaine
cb12a81daf
added test notes to futures test suite
...
svn: r18191
2010-02-19 19:21:03 +00:00
James Swaine
a7332c09a2
moved futures tests to collects/tests/future directory
...
svn: r18190
2010-02-19 19:17:59 +00:00