Jacek Sieka
75f01bd49f
Ensure channels don't leak exception effects ( #25318 )
...
The forward declarations cause `Exception` to be inferred - also,
`llrecv` is an internal implementation detail and the type of the
received item is controlled by generics, thus the ValueError raised
there seems out of place for the generic api.
(cherry picked from commit 91febf1f4c )
2025-12-02 14:21:33 +01:00
Andreas Rumpf
69d0b73d66
fixes #22510 ( #23100 )
2024-06-06 00:52:01 +02:00
ringabout
cdbf5b4699
fixes a severe bug of testament ( #20832 )
...
* test azure
* use exit 1
* try again
* use useSysAssert
* disable i386
* use refc for tlsEmulation on i386
* use refc
* disable i386
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
2022-11-17 09:38:07 +08:00
ringabout
e03a178bff
rename std/threads to std/typedthreads ( #20850 )
...
* rename `std/threads` to `std/oldthreads`
* fixes tests
* rename to `typedthreads`
* changelog
2022-11-16 16:35:20 +01:00
ringabout
d73fff1ecc
fixes flaky CI with channels and ORC ( #20831 )
...
fixes flasky CI with channels
channels doesn't seem to work well with arc/orc
2022-11-13 15:29:47 +08:00
ringabout
e1ddd2d524
put std/threads under the umbrella of nimPreviewSlimSystem ( #20711 )
...
* put `std/threads` under the umbrella of `nimPreviewSlimSystem`
* add changelog
* fixes tests
* fixes tests again
* fixes tests
2022-10-31 06:36:50 +01:00
Matt Haggard
964afd3050
Make output assertion deterministic for test for #7172 ( #20495 )
...
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
2022-10-05 20:14:22 -04:00
ringabout
7739e23420
defaults to ORC ( #19972 )
...
* defaults to Orc
* bootstrap using refc
* use gc
* init orc defines
* unregister orc
* fix gc
* fix commands
* add prepareMutation for orc
* enable deepcopy for orc
* prepareMutation
* more fixes
* some cases
* bug #20081
* partial fixes
* partial fixes
* fixes command line
* more fixes
* build Nim with refc
* use gc
* more fixes
* rstore
* orc doesn't support threadpool
* more shallowCopy
* more fixes
* fixes unsafeNew
* workarounds
* small
* more fixes
* fixes some megatest
* tcodegenbugs1 refc
* fxies megatest
* build nimble with refc
* workaround tensordsl tests
* replace shallowCopy with move
* fixes action
* workaround
* add todo
* fixes important packages
* unpublic unregisterArcOrc
* fixes cpp
* enable windows
Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com >
2022-09-23 13:05:05 +02:00
flywind
f048dad7c3
add testcase for #6499 #12229 #7172 ( #18547 )
2021-07-21 09:47:06 +02:00
flywind
d1e093207a
fix #17267 ( #17273 )
...
* remove unnecessary when statement
* remove outdated codes
* reuse jsffi
* move js json coverage
* fix #17267
* address comments
* Update compiler/main.nim
* Update tests/threads/tjsthreads.nim
2021-03-07 12:13:41 +01:00
Miran
8088633250
faster CIs ( #13803 )
...
* ttables: smaller table, 5x speedup
* thavlak: less iterations, less loops; 30% speedup
* tasyncclosestall: shorter timeout; 35% speedup
* gcleak4: less iterations, 2x speedup
* ttimes: remove deprecated stuff
* tdangerisrelease: remove cpp backend, 3x speedup
* tfrexp1: smaller range, 2x speedup
* trtree: fix warnings, less iterations, 6x speedup
* tasyncawait_cyclebreaker: smaller swarm size; 2x speedup
* trealloc: smaller number of iterations; 10x speedup
* towned_binary_tree: less iterations, 4x speedup
* tclosure: remove unused code, less iterations; 2x speedup
* twaitany: less durations; 1.4x speedup
* tasync_misc: less iterations, 2x speedup
* t8535: smaller sleep, 1.5x speedup
* tmanyjoin: smaller sleep, 2x speedup
* t12221: shorter sleeps, removed two slower tests; 1.6x speedup
* tfuturestream: smaller sleep; 1.5x speedup
* growobjcrash: less iterations; 2x speedup
* ttryrecv: smaller sleep; 1.5x speedup
* treusetvar: less threads; 2x speedup
* delete tthreadanalysis2, basically a duplicate of tthreadanalysis
* t7758: less iterations, 1.5x speedup
* tasyncawait: smaller swarm, less messages; 1.5x speedup
* tjsandnativeasync: smaller sleep, 1.5x speedup
* tpendingcheck: smaller sleep, 1.5x speedup
* remove rodfiles test category
* move tseq from its own category to 'collections' category
* remove unneeded tests and helpers from 'assert' category
* stdlib: merge tbitops2 into tbitops
* remove 'trepr2' from 'stdlib' cat
* merge 'tstreams' into one file
* remove 'tinefficient_const_table' from 'ccbugs' cat
* merge 'tcollections_to_string' into 'tcollections'
* tblocking_channel: smaller sleep, small speedup
* tconvexhull: less iterartions; 1.2x speedup
* merge 'tdeepcopy2' into 'tdeepcopy'
* merge 'tdisjoint_slice2' into 'tdisjoint_slice1'
* tmissing_deepcopy: smaller sequence
* tsendtwice: smaller arrays; 5x speedup
* remove 'tindexerrorformatbounds'
* disable multimethod tests
* remove 'gc:none' and 'refc' without 'd:useRealtimeGC' from gc tests
* koch.nim: bootstrap just with '-d:release', no need for 'csource'
* add github workflow for documentation
* testament: no need for 8 sub-second decimals
2020-03-30 13:18:12 +02:00
Zed
1f8c9aff1f
Fix and reenable thread tests ( #11343 )
2019-05-28 15:23:09 +02:00
Araq
795044ed2b
make tests green again
2019-05-27 21:29:02 +02:00
Andreas Rumpf
32c9ca605e
fixes #10795
2019-03-06 10:15:27 +01:00
Miran
5345c5b130
remove deprecated modules ( #10215 )
...
* removed from `compiler`:
* lists (deprecated 2 years ago)
* removed from `lib` (all deprecated 3 years ago):
* ssl
* matchers
* httpserver
* removed from `lib/deprecated`:
* unsigned
* actors (and three accompanying tests)
* parseurl
* moved to `lib/deprecated`:
* securehash (the reason for not directly removing - it was deprecated (only) one year ago)
2019-01-07 10:37:49 +01:00
Arne Döring
a5ecbf823f
lots of small changes
2018-12-11 21:23:22 +01:00
Arne Döring
1105d03644
require errormsg to be specified before file.
2018-12-11 21:23:21 +01:00
Araq
6279b0587a
make tests green again
2018-11-16 19:54:49 +01:00
Utwo
a68a4bfaf2
Remove install.txt and readme.txt ( #9521 )
...
* Remove install.txt and readme.txt
* Refactor tests that use readme.txt
* Tests open own source code
2018-10-28 13:36:52 +01:00
LemonBoy
ac0f5c83ca
Fixes 8535 ( #8591 )
...
* Goodbye postInitProc
* Give preInitProc its own scope
Avoid any conflict between the variables introduced by preInitProc and
initProc since both are codegen'd in the same function body.
* Fix codegen for global var init in emulated TLS
Fixes #8535
* Add test for #8535
* Keep a bogus stack frame around
* Remove more dead code
2018-08-17 00:34:27 +02:00
Araq
420ed0596b
fixes more nil handling regressions
2018-08-13 17:27:44 +02:00
Andreas Rumpf
c0024fa587
fixes channels for --gc:regions
2018-05-25 16:21:33 +02:00
Zahary Karadjov
ae5c946a32
Support thread-local variables declared inside procs; fixes #7565
2018-05-07 09:37:49 +02:00
Andreas Rumpf
ddc131cf07
the parser finally parses 'echo {1,2}' as it should
2017-09-30 21:35:30 +02:00
Eugene Kabanov
254fbcc548
Fixes #4719 . ( #5585 )
2017-03-23 16:13:38 +01:00
Eugene Kabanov
8310d252c2
Update testament to include all tests from tests/threads category. ( #5576 )
2017-03-20 20:20:26 +01:00
Araq
4f062c3be0
removed onThreadCreation; onThreadDestruction is now thread local
2017-02-26 20:42:19 +01:00
Araq
86833b53a4
added a testcase for getThreadId
2017-01-31 13:18:18 +01:00
Araq
79f4b37d3b
added test case; threadex example crashes now
2017-01-30 21:11:37 +01:00
Andreas Rumpf
eb96eaa5c2
onThreadDestruction feature added to Nim's threading model
2017-01-24 12:07:44 +01:00
Andreas Rumpf
61937974e2
added system.onThreadCreation feature for safe thread local storage initializations
2017-01-18 13:41:55 +01:00
Andreas Rumpf
95bb19a579
moved random procs from math to its own module (breaking change)
2016-05-30 16:24:52 +02:00
def
7177e0058b
Consistently use Channel instead of TChannel
2016-02-25 04:04:45 +01:00
def
c50b5b62ef
Fix a few deprecation warnings
2016-01-25 19:10:37 +01:00
Adam Strzelecki
e80465dacf
tests: Trim .nim files trailing whitespace
...
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00
Araq
194b14a182
fixes #1816
2015-01-02 03:32:45 +01:00
Araq
c6034277fc
further adaptations
2014-08-29 09:12:12 +02:00
Araq
cd2c6128d1
renamed babelcmd to nimblecmd; config files are now nim.cfg; other renamings
2014-08-29 09:03:00 +02:00
Araq
62e454f41b
asynchttpserver compiles again; made some tests green
2014-08-13 01:16:18 +02:00
Araq
be6474af63
removed flawed thread analysis pass
2014-04-20 14:00:04 +02:00
Dominik Picheta
2fb5d62927
Tester now appreciates the test target. Modified 'cmd' in specs.
2014-04-16 21:28:19 +01:00
Araq
76ef752957
made some tests green
2014-03-27 19:43:17 +01:00
Zahary Karadjov
0bbf6081d0
fix #931 and few more tests
2014-02-18 20:04:58 +02:00
Grzegorz Adam Hankiewicz
72a3e21f28
Removes executable bit for text files.
2013-03-16 23:53:07 +01:00
Araq
505f179515
added tactors2 test
2012-09-21 19:31:18 +02:00
Araq
c6213c9774
fixes #71 ; sorry about the polling implementation
2011-12-05 21:43:45 +01:00
Araq
24e1d22ec9
fixes 70
2011-12-04 20:21:38 +01:00
Araq
4b39ac5cbe
deprecated endOfFile and readLine
2011-11-25 18:17:14 +01:00
Araq
02e8e9c3ea
fixed bug that kept tls emulation from working
2011-11-25 17:26:11 +01:00
Araq
72651de710
bugfix: 'when' sections in generic objects now work, so TThread[void] compiles
2011-11-20 16:13:03 +01:00