Commit Graph

1792 Commits

Author SHA1 Message Date
Emery Hemingway
9258672cee balance Genode CPU pinning, deadlock at Genode exit (#6317)
* Genode: balance thread CPU affinities
Genode threads are pinned by defaut to the same CPU as the initial
component entrypoint thread. Thread affinities are also permanent. This
patch pins new threads to CPUs in a round-robin manner. Arbitrary CPU
pinning is not exposed and the 'nimPinToCpu' has no effect.

* Genode: guarantee that 'quit' will not return
On Genode exits are handled by whatever component is acting as parent.
The caller has no guarentee that the parent implementation will halt the
caller's threads, so explicitly deadlock the 'quit' procedure.
2017-09-16 08:02:59 +02:00
Andreas Rumpf
053b0ad6f3 Merge branch 'araq' of github.com:nim-lang/Nim into araq 2017-09-15 16:08:16 +02:00
Andreas Rumpf
39f0195ebf Merge branch 'devel' into araq 2017-09-15 09:27:51 +02:00
Yuriy Glukhov
d13535471b Fixed handling of surrogate pairs (#6332) 2017-09-05 16:42:41 +02:00
Jacek Sieka
22684370b0 remove ArrayDummySize with unchecked arrays (#5818) 2017-08-28 15:44:35 +02:00
Araq
b6360c5d5f memory regions seem to work now 2017-08-13 02:51:00 +02:00
Araq
6b3af6a5d7 WIP: --gc:regions instead of --gc:stack 2017-08-13 02:51:00 +02:00
Andreas Rumpf
88b65ea957 fixes #6234 2017-08-11 20:14:44 +02:00
andri lim
d0365dcadf fixes #6196 2017-08-08 09:04:39 +07:00
Fredrik Høisæther Rasch
c39e202976 Introduce first class support for Android (#5772) 2017-08-06 02:18:15 +02:00
Ruslan Mustakov
03fc7f3941 Allow to configure tls size (#6171) 2017-08-05 16:34:31 +02:00
James Cowgill
fed1b0a077 Add mips64 and mips64el CPU platforms (#5866) 2017-08-03 18:37:02 +02:00
Yuriy Glukhov
3d543b1539 Channels can now block depending on maxItems (#6153) 2017-07-31 20:06:55 +02:00
Arne Döring
000b8afd26 Remove expr/stmt (#5857) 2017-07-25 09:28:23 +02:00
Arne Döring
c9a2acefc1 fix 2017-07-24 23:21:51 +02:00
Arne Döring
ddea990a70 removed newString proc again, reverted some unnecesary changes 2017-07-24 23:21:51 +02:00
Arne Döring
0852be2dec remove $ for ptr/ref, prefer using string over array of char 2017-07-24 23:21:51 +02:00
Arne Döring
1f7fc7f279 arrays can now be printed 2017-07-24 23:21:51 +02:00
Andreas Rumpf
cb0d65280f fixes #6131 2017-07-22 15:42:09 +02:00
Andreas Rumpf
e968fbb7dd added system.deallocHeap feature for Nim's native GCs 2017-07-22 11:38:47 +02:00
Andreas Rumpf
ad608838bf closures have an object type field so that we can perform correct deepCopy() for the BoehmGC target 2017-07-22 11:10:52 +02:00
Andreas Rumpf
6f89323385 make the GCs more robust 2017-07-20 18:42:08 +02:00
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