summary refs log tree commit diff stats
path: root/lib/system
Commit message (Collapse)AuthorAgeFilesLines
* the Go GC - initial implementationStefan Talpalaru2015-05-314-6/+198
|
* Fix Boehm GC on linuxSergey Avseyev2015-05-261-2/+1
| | | | | | | | | | | | | | | | Motivation ---------- Some linuxes (like Fedora) actually multiarch. And it means that libgc.so.1 not always installed into /usr/lib. It is better to entrust this job to ld and system configuration for it. Modification ------------ Use relative path for Boehm GC on 'other' OS (and linux in particular) Result ------ It is possible now to build nim with --gc:boehm on linux
* Merge pull request #2671 from rbehrends/fix-register-scanAndreas Rumpf2015-05-252-0/+18
|\ | | | | Fix GC scanning of registers on x86_64 architectures.
| * Fix GC scanning of registers on x86_64 architectures.Reimer Behrends2015-05-072-0/+18
| | | | | | | | | | | | | | It is possible for jmp_buf to not be word-aligned or addresses in the register dump to not be word-aligned. This can result in either addresses in registers being missed or even addresses on the stack past the register area not being scanned properly.
* | Move the noreturn pragma to sysFataldef2015-05-052-7/+7
|/ | | | | Now you can choose to implement sysFatal with --os:standalone so that it returns.
* fixes #1888Araq2015-04-271-39/+47
|
* The importc for atomicCompareExchange is incorrectly defined.Wink Saville2015-04-131-1/+1
| | | | | The .importc: was referring to __atomic_compare_exchange_n this corrects it to be __atomic_compare_exchange.
* fixes bootstrapping on windowsAraq2015-04-101-2/+3
|
* Merge pull request #2329 from def-/readlineAndreas Rumpf2015-04-101-16/+52
|\ | | | | Speed up readLine by using getc_unlocked
| * Speed up readLine by using getc_unlockeddef2015-03-121-16/+52
| | | | | | | | | | | | - Only on POSIX and Windows (_fgetc_nolock here) systems - File is locked to our thread before and unlocked after readLine - About 3 times faster in some simple tests
* | Use more Natural and Positive numbers in proc parametersdef2015-04-063-132/+132
| | | | | | | | | | - Didn't go through all modules, only the main ones I thought of - Building the compiler and tests still work
* | some better sysassert messagesSimon Hafner2015-04-041-2/+2
| |
* | Fix proc call in gc_msdef2015-03-261-1/+1
| | | | | | | | This fixes compilation with --gc:markandsweep -d:gcUseBitvectors
* | Add cpuRelax assembler for other platformsdef2015-03-211-54/+57
| |
* | Merge pull request #2343 from philip-wernersbach/fix-pthreads-under-cppAndreas Rumpf2015-03-161-2/+2
|\ \ | | | | | | Fix issues with pthread_create when compiling under C++ mode.
| * | Fix pthread_create binding when compiling in C++ mode.Philip Wernersbach2015-03-151-2/+2
| | | | | | | | | | | | | | | C++ has different rules for void pointers, which causes the binding to be invalid when compiling in C++ mode.
* | | Fixes #2323. Fixes #2148.Dominik Picheta2015-03-151-7/+11
|/ /
* / Make readFile work with FIFO filesdef2015-03-121-1/+1
|/
* Clean up GCs a bitdef2015-03-102-6/+13
|
* fixed the tester; more tests greenAraq2015-03-101-18/+22
|
* fixes --gc:none regression; made some tests greenAraq2015-03-103-33/+42
|
* GC: get rid of pathological behaviour for stack markingAraq2015-03-081-39/+43
|
* Fix copyStrLast to set the trailing \0 chardef2015-03-041-1/+2
|
* sizeof(char) is always 1def2015-03-043-10/+10
|
* Also deepCopy strings only up to their length, not capacitydef2015-03-041-1/+1
|
* Only zero strings when necessary.def2015-03-042-14/+25
| | | | | This removes the zeroing when the string is subsequently overwritten by a memcpy anyway.
* Only copy strings to their size, not capacitydef2015-03-031-2/+2
| | | | | Capacity may be much bigger, so we end up with strings that are much larger than they have to be and have to copy more as well.
* Merge pull request #2238 from oderwat/fix-2228-readall-osxAndreas Rumpf2015-03-011-2/+2
|\ | | | | Fix for readAll(stdin) problem on OS X and better anyway. I can confirm this works on Windows.
| * Fix for readAll(stdin) problem on OS X and better anyway.Hans Raaf2015-03-011-2/+2
| |
* | some love for the testsuite; fixed regressionsAraq2015-03-012-4/+14
|/
* fixes #2074Araq2015-02-261-1/+11
|
* fixes #2199, fixes #2197Araq2015-02-241-1/+1
|
* Removed int64 -> int downcast in timers.`-`GrundleTrundle2015-02-211-2/+2
| | | | | On windows when compiling on 32 bit, this can get you a out of range exception for an otherwise valid interval.
* fixes #2124Araq2015-02-201-2/+4
|
* Make readBytes and writeBytes work with uint8def2015-02-181-2/+2
| | | | | | So far only openarray[int8] worked. Now it's openarray[int8|uint8]. This should make sense, since uint8 is comfortable to represent a byte (0-255) and there is already type byte* = uint8 in system.
* Merge pull request #2150 from def-/gc2-compilingAndreas Rumpf2015-02-162-71/+73
|\ | | | | Make gc2 compile again and fix some deprecation warnings
| * Clean up some more deprecation warningsdef2015-02-162-7/+7
| |
| * Make gc2 compile againdef2015-02-161-64/+66
| |
* | Fix typosFederico Ceratto2015-02-159-11/+11
| |
* | Fix typosFederico Ceratto2015-02-151-1/+1
|/
* Disable -pthread for linker on OSXHans Raaf2015-02-131-1/+3
| | | | | The -pthread is not needed on Darwin/OS X and the Apple compilers give a warning about this if you use --threads:on with the Nim compiler.
* fixed minor bugs; cleaned up testsAraq2015-02-121-3/+3
|
* Merge pull request #2053 from reactormonk/message-for-koch-tempAndreas Rumpf2015-02-121-0/+14
|\ | | | | report how to create a compiler stacktrace #1280
| * report how to create a compiler stacktrace #1280Simon Hafner2015-02-011-0/+14
| |
* | cleaned up GC tests; fixes object variant re-assign bugAraq2015-02-101-3/+7
| |
* | fixes #2070Araq2015-02-102-19/+29
| |
* | lots of C++ codegen improvementsAraq2015-02-072-7/+15
| |
* | C++ support: codegen generates C++'s references and avoids copiesAraq2015-02-041-2/+7
|/
* Merge pull request #2005 from def-/fix-estpAndreas Rumpf2015-01-272-2/+2
|\ | | | | Make ESTP compile
| * Make ESTP compiledef2015-01-232-2/+2
| |