Andreas Rumpf
ebba9f06ae
fixes #5871
2017-07-20 18:42:08 +02:00
Araq
f127a7f7aa
fixes #6096
2017-07-17 16:43:10 +02:00
andri lim
c245cfc1fd
fixes #5986 js backend failed to compile try ... except new syntax ( #6116 )
2017-07-17 08:07:47 +02:00
Eugene Kabanov
3c36aed100
Cache threadId to not perform syscalls all the time ( #6111 )
...
Use syscall to get threadId on FreeBSD and MacOS
2017-07-16 17:01:58 +02:00
Andreas Rumpf
2b862b74e0
Merge branch 'devel' into araq
2017-07-13 04:48:22 +02:00
Andreas Rumpf
0c271f5420
fixes #5871
2017-07-13 04:43:53 +02:00
Andreas Rumpf
03e0aa37e3
fixes system.onUnhandledException feature
2017-07-12 15:39:12 +02:00
Andreas Rumpf
57ed077c1e
add system.onUnhandledException feature
2017-07-12 15:37:49 +02:00
Andreas Rumpf
3993718335
JS codegen: make 'echo' use console.log unless you define -d:nimOldEcho
2017-06-28 16:18:19 +02:00
Andreas Rumpf
8db37455dd
fixes withRegion for --gc:stack
2017-06-19 17:43:12 +02:00
Araq
d947753523
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-06-16 01:48:35 +02:00
Araq
c3b0eb5df7
added logic to the M&S GC to detect logical leaks
2017-06-16 01:48:23 +02:00
Markus F.X.J. Oberhumer
a0f39e0ab4
Ascii character code 127 (DEL) is not printable and must be quoted. ( #5984 )
...
This is a follow-up to #5823 .
2017-06-15 20:42:23 +02:00
Ștefan Talpalaru
0c8c878f5a
support libgo from GCC 6.3 ( #5964 )
2017-06-08 09:53:35 +02:00
Eugene Kabanov
199f061ddc
Fix #5920 ( #5922 )
...
* Use native `getthrid` on OpenBSD.
* Use NetBSD specific primitive to get thread id
2017-05-31 21:00:16 +02:00
Yuriy Glukhov
2b8a1cee8c
Fixup #5804 ( #5837 )
2017-05-18 13:12:43 +02:00
Andreas Rumpf
c3c37dbb15
Merge branch 'devel' into araq
2017-05-16 15:43:09 +02:00
Andreas Rumpf
113857c7f1
better stack trace handling
2017-05-16 14:03:33 +02:00
Yuriy Glukhov
534d8a6b59
Fixed syslocks for ios ( #5804 )
2017-05-12 12:11:58 +02:00
Ruslan Mustakov
77cadd07f9
Fix atomicInc under vcc, C++, amd64 ( #5809 )
...
Also, fixed inconsistent behaviour of atomicInc on vcc. Previously
it would return the old value, while it must return the new value.
Fixes : #5808
2017-05-12 11:24:45 +02:00
Andreas Rumpf
764cc02177
Merge branch 'devel' into araq
2017-05-04 16:02:50 +02:00
Andreas Rumpf
56a5c249c9
JS codegen: produce better code for constant sets
2017-05-01 09:30:56 +02:00
Andreas Rumpf
02bbfa1164
precise stack scanning for Nim's GCs; work in progress
2017-04-19 08:33:19 +02:00
Jacek Sieka
e512358bc9
Linux abi take 3 ( #5692 )
...
* avoid generating object fields for imported types
* fix some abi/type issues for linux_amd64
2017-04-12 22:57:10 +02:00
Araq
6eb74c7281
remove system.getFileSize again, breaks windows builds and I don't want more stuff that's a pain to support in a platform independent manner
2017-04-08 18:19:01 +02:00
Emery Hemingway
bc5c2d8414
getFileSize and setFileSize procedures for File and AsyncFile
...
Platform independent procedure to set a file length. Useful when
replacing file content.
2017-04-05 19:05:43 -05:00
Emery Hemingway
dd7ebb2c95
fixup! support for the Genode OS framework ( #5653 )
...
Allocate thread metadata at createThread.
2017-04-02 23:48:23 +02:00
Andreas Rumpf
c65ff403b2
memory manager: use less memory; corruption prevention
2017-04-02 23:41:29 +02:00
Emery Hemingway
7e351fc7fa
support for the Genode OS framework ( #5560 )
2017-03-31 23:13:06 +02:00
Silvio
2946c7a4b9
Implementing repr for JS ( #5578 )
2017-03-31 22:00:48 +02:00
Araq
30c99a8440
fixes #5628
2017-03-30 12:53:32 +02:00
Andreas Rumpf
1268ca79e5
fixes #5599 ( #5610 )
2017-03-26 09:30:59 +02:00
Eugene Kabanov
254fbcc548
Fixes #4719 . ( #5585 )
2017-03-23 16:13:38 +01:00
Eugene Kabanov
e20af5cec6
Fix #4972 . ( #5567 )
2017-03-19 07:16:13 +01:00
Eugene Kabanov
336a7c9b3f
Fixes to support Dragonfly BSD. ( #5552 )
...
* Fix kqueue.nim and ansi_c.nim to support dragonfly.
* Fix ioselectors.nim, threads.nim to support dragonfly.
* Fix deprecated dealloc call in tioselectors.nim.
* Fix tfsmonitor.nim test to run only on Linux.
* Fix osproc.nim return wrong exit codes.
* Fix getAppFilename() for dragonfly.
* Fix proper exit code handling.
2017-03-17 08:22:11 +01:00
Araq
518696f3a7
hotfix: allocator: don't set origSize to 0
2017-03-15 17:51:26 +01:00
Yuriy Glukhov
27c8efda9d
decTypeSize on growObj ( #5465 )
2017-03-15 10:58:34 +01:00
Samantha Marshall
93753926f5
adding support for using llvm ASAN ( #5536 )
2017-03-14 23:33:56 +01:00
Araq
98c7bab8ea
make memory tracker work without onThreadCreation
2017-03-14 15:45:35 +01:00
Araq
ced38f3fdb
udpate channels.nim documentation
2017-03-08 22:56:21 +01:00
Yuriy Glukhov
73387e89a0
Fixed compilation error ( #5462 )
2017-03-02 14:58:26 +01:00
Federico Ceratto
d5054c3081
Add note about passing channels between threads.
2017-02-27 21:44:44 +00:00
Andreas Rumpf
895e2aea15
Merge pull request #5317 from rokups/feature/coroutines
...
Coroutine improvements
2017-02-26 23:24:29 +01:00
Araq
4f062c3be0
removed onThreadCreation; onThreadDestruction is now thread local
2017-02-26 20:42:19 +01:00
Rokas Kupstys
f80ddbbcc6
Use constant nimCoroutines instead of defined(nimCoroutines)
...
Variable
2017-02-20 17:24:19 +02:00
Rokas Kupstys
9f8863169a
Cleanup of gc code
...
Cleanups
2017-02-20 17:24:19 +02:00
Rokas Kupstys
d69b701dde
Coroutines realtime support
2017-02-20 17:24:19 +02:00
Rokas Kupstys
c3d1b732d6
Reworked gc support for coroutines. Nim now bootstraps with -d:nimCoroutines
...
Added gc test to coro.nim
Lots of misc improvements and comments in coro.nim
2017-02-20 17:24:19 +02:00
Rokas Kupstys
ff1bf74554
Delete fiber context when it exits (memleak fix)
...
Few correctness changes to gc stack management.
2017-02-20 17:24:19 +02:00
Rokas Kupstys
9a754156d7
Added support for exceptions in coroutines and added exception test
...
Fix bug where first coroutine ending would terminate main loop
2017-02-20 17:24:19 +02:00