Commit Graph

4768 Commits

Author SHA1 Message Date
cheatfate
e84efc4d01 asyncdispatch exception memory leaks fixes. 2017-01-27 12:14:53 +02:00
cheatfate
4b95819146 Fix #5290.
Some cosmetic changes.
2017-01-27 11:08:57 +02:00
Yuriy Glukhov
c8dcf8993f Added heapqueue.del (#5289) 2017-01-27 08:22:17 +01:00
Andreas Rumpf
2836ea7868 Merge branch 'fixsharray' of https://github.com/cheatfate/Nim into cheatfate-fixsharray 2017-01-27 08:06:22 +01:00
Andreas Rumpf
cb6c975d3a fixes repr regression 2017-01-27 07:06:22 +01:00
Andreas Rumpf
8d3d9ce5cc repr.nim: minor improvement when outputting addresses of cstrings 2017-01-26 23:50:19 +01:00
cheatfate
6caefcc573 oops. 2017-01-26 18:41:22 +02:00
cheatfate
78e3bd392c Fix changes table must be SharedArray when hasThreadSupport. 2017-01-26 18:28:34 +02:00
Andreas Rumpf
ca0b16fd33 newException supports setting of the 'parent' field 2017-01-26 15:20:24 +01:00
Andreas Rumpf
f7e3addb89 bugfix: onThreadDestruction callbacks should be run in reverse order 2017-01-26 11:28:25 +01:00
Andreas Rumpf
05a3c1b10a improvements to memtracking 2017-01-26 11:26:02 +01:00
Andreas Rumpf
303c49b9f3 memory tracker is aware of threads (still not threadsafe though) 2017-01-26 11:26:02 +01:00
David Krause
b20817c3fb added default param to strtabs.getOrDefault (#5280) 2017-01-26 10:34:02 +01:00
Jeff Ciesielski
7f30d04d6a Fix compilation for 16 bit targets (#5286) 2017-01-26 07:05:03 +01:00
Michael Jendrusch
536015ee7b Implement RFC #4873 improvements to JavaScript FFI (#5213) 2017-01-26 00:07:30 +01:00
Jeff Ciesielski
74ae66ddbc Add volatile load/store (#5263)
Adds volatile load/store capability to the impure part of the standard
library.  Note that this currently only supports numerical types.

Should resolve https://github.com/nim-lang/Nim/issues/3382
2017-01-25 20:02:19 +01:00
Gangsta Cat
c54bffae5b Fix a typo in system's staticExec procedure description (#5276) 2017-01-24 16:57:39 +01:00
Andreas Rumpf
eb96eaa5c2 onThreadDestruction feature added to Nim's threading model 2017-01-24 12:07:44 +01:00
Ruslan Mustakov
35d48765fb Use onThreadCreation to set default SSL context for each thread (#5265)
Fixes: #4998
2017-01-23 21:04:14 +01:00
Eugene Kabanov
e17969c03f Fix declaration of inet_ntop to be GCSafe. (#5266) 2017-01-23 16:58:00 +01:00
Dominik Picheta
9e723166fe Merge pull request #5250 from yglukhov/http-redirect
Redirects support in request proc
2017-01-21 11:48:50 +01:00
Dominik Picheta
e634ee858c Merge pull request #5255 from enthus1ast/devel
added isAbsolute to uri.nim
2017-01-21 11:44:52 +01:00
enthus1ast
f2ce8eb372 more isAbsolute tests for uri.nim
Signed-off-by: enthus1ast <enthus1ast>
2017-01-21 02:54:38 +01:00
enthus1ast
46ac235715 added protocol-relative test to uri.nim
Signed-off-by: enthus1ast <enthus1ast>
2017-01-21 02:40:09 +01:00
Araq
572fd067cf added system.runOnThreadCreationHandlers for initialization of thread local storage for the main thread 2017-01-20 20:32:41 +01:00
Vladar4
ea4397fbb0 fixed bug when the first random(max: float) call is the same value, regardless of randomize() (#5257) 2017-01-20 19:35:20 +01:00
Araq
cdebcf23d9 new segfaults.nim stdlib module works on Windows 2017-01-20 17:08:11 +01:00
Araq
64a7d2fd08 ansi_c.nim: avoid deprecated 'expr' type 2017-01-20 13:17:45 +01:00
Andreas Rumpf
7ff80cc8b2 first implementation of segfaults stdlib module 2017-01-20 12:40:54 +01:00
Andreas Rumpf
e22c36dfc2 posix.nim: make new sigaction wrapper compatible with C++ 2017-01-20 12:40:54 +01:00
Yuriy Glukhov
2f320fb286 Fixed query and anchor during relative redirection 2017-01-20 12:59:13 +02:00
enthus1ast
9626919cd3 added isAbsolute to uri.nim 2017-01-20 00:45:44 +01:00
Andreas Rumpf
ecf1802568 posix.nim add 'sigaction' with 3rd nil parameter 2017-01-19 20:00:31 +01:00
Yuriy Glukhov
b2237678fb Redirects support in request proc 2017-01-19 17:44:53 +02:00
Yuriy Glukhov
fe0291f127 Import ospaths instead of include (#5233)
* Import ospaths instead of include
* searchExtPos made public
2017-01-18 20:17:53 +01:00
Dominik Picheta
bde768cb09 Merge pull request #5239 from illogica/patch-2
Fix nativesockets.select()
2017-01-18 17:49:49 +01:00
Andreas Rumpf
61937974e2 added system.onThreadCreation feature for safe thread local storage initializations 2017-01-18 13:41:55 +01:00
Loris Pederiva
9b0b079634 Fix nativesockets.select() 2017-01-18 09:42:56 +01:00
Andreas Rumpf
915cc86f5d docs for the heap dump feature 2017-01-16 23:04:53 +01:00
jlp765
704eae8495 re additions for buffer (cstring) RE matching (#5117)
* Replace expr with untyped

* Add buffer (cstring) related procs
Replace expr with untyped
Replace testing assert() procs with doAssert()

* make the string variants call the cstring variants in order to fight code size

* Remove redundant proc

* fix casting of cstring
add init of variables (identified by verbosity:3)

* Speed up - use pattern.e for exec()
inline some procs
2017-01-16 15:55:15 +01:00
Eugene Kabanov
108f5e688e Fix #5128, #5184. (#5214)
* Fix #5128, #5184.
Removed flush() procedure from ioselectors.nim
Changed methods of work with application-driven data

* Make cache switch for kqueue, update test for it.

* Fix registerProcess bug returns wrong id.
Fix tupcoming_async test to compile with upcoming again.
Change socket() as unique identifier to dup(socket) as unique identifier.
2017-01-16 14:01:40 +01:00
MednauN
f8736dcfb7 Fixed Mersenne Twister (#5227) 2017-01-16 13:35:43 +01:00
Andreas Rumpf
03916fa3b1 M&S GC gets the heap dump feature 2017-01-15 10:12:28 +01:00
Andreas Rumpf
723a5a09f4 Update system.nim 2017-01-14 16:21:05 +01:00
Andreas Rumpf
823fbd4e40 default GC can do a sort of heap dump via -d:nimTypeNames and dumpNumberOfInstances() 2017-01-14 04:00:06 +01:00
Andreas Rumpf
9753782f96 memory allocator hotfix: do not allocate tremendous amounts of memory 2017-01-13 12:07:37 +01:00
Loris Pederiva
f237f7f1cf Make SockAddr.sa_data public
Make SockAddr.sa_data public, coherently with its Posix counterpart.
2017-01-11 12:01:27 +01:00
Dmitriy Fomichev
d356c37185 Workaround for the high cpu usage issue in coroutines on linux (#5186)
Fixes high cpu usage when all coroutines are asleep
2017-01-11 10:01:03 +01:00
Parashurama
d04ca6ef23 Improve & optimize strutils 'find' procs (#5196)
* add 'last' argument to 'find' procs in strutils
* add 'rfind' proc for looking up set[char] in strutils
* use optimised C function 'memchr' when available
2017-01-11 09:48:31 +01:00
Lolo Iccl
abe5cb82a0 Fix for #5134 (parseJson(string) should fail on leftover data) (#5203) 2017-01-11 06:50:18 +01:00