summary refs log tree commit diff stats
path: root/tests/destructor
Commit message (Collapse)AuthorAgeFilesLines
* fixes #13457 (#13458)Andreas Rumpf2020-02-211-1/+8
|
* Repr v2 progress (#13268)cooldome2020-01-281-1/+1
| | | | | | | | | | * progress on repr_v2 * repr progress * add ref objects with distrinct * fix failing tests
* ARC: remove unnecessary codeAraq2020-01-261-4/+3
|
* contributing docs: symbols need package prefix; changed allocStats to ↵Timothee Cour2020-01-258-8/+8
| | | | nimAllocStats (#13247)
* Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses ↵Ico Doornekamp2020-01-239-56/+31
| | | | | | | | | | | | | | | | | | | | | | | | | allocShared0. (#13190) * Cleanup, remove lib/system/allocators.nim. seqs_v2 and strs_v2 now use allocShared0 by default. * Fixed -d:useMalloc allocShared / reallocShared / deallocShared. These now use the alloc/dealloc/realloc implementation that also takes care of zeroing memory at realloc. * Removed debug printfs * Removed unpairedEnvAllocs() from tests/destructor/tnewruntime_misc * More mmdisp cleanups. The shared allocators do not need to zero memory or throw since the regular ones already do that * Introduced realloc0 and reallocShared0, these procs are now used by strs_v2 and seqs_v2. This also allowed the -d:useMalloc allocator to drop the extra header with allocation length. * Moved strs_v2/seqs_v2 'allocated' flag into 'cap' field * Added 'getAllocStats()' to get low level alloc/dealloc counters. Enable with -d:allocStats * *allocShared implementations for boehm and go allocators now depend on the proper *allocImpl procs
* fixes #13195 (#13198)cooldome2020-01-201-0/+25
| | | | | | | | * fixes #13195 * extra fix * fix typo
* Revert "fixes #13195"Andrii Riabushenko2020-01-191-25/+0
| | | | This reverts commit cd7904f2b29e623998a1d32ee726d000f56fc5ce.
* revert last commitAndrii Riabushenko2020-01-191-0/+25
|
* more on arc codegen (#13178)cooldome2020-01-191-1/+20
| | | | | | | | | | | | * arc codegen for union type * add more tests * fix offsetof * fix tsizeof test * fix style
* make sink operator optional (#13068)cooldome2020-01-172-12/+4
| | | | | | | | | | | | | | | | * make sink operator optional * bug fix, add changelog entry * Trigger build * fix one regression * fix test * Trigger build * fix typos
* Working towards arc codegen (#13153)cooldome2020-01-161-0/+57
| | | fixes #13029
* fixes #13105 (#13138)Andreas Rumpf2020-01-141-0/+18
|
* fixes #13119 (#13128)Andreas Rumpf2020-01-141-0/+12
| | | | | * fixes #13119 * fixes a regression
* fixes #13112 (#13127)Andreas Rumpf2020-01-131-0/+6
| | | | | | * improve line error information * fixes #13112
* more arc features (#13098)Andreas Rumpf2020-01-101-0/+25
| | | | | * config update * ARC now supports 'repr' and 'new' with finalizers is supported
* fixes #13070Araq2020-01-101-0/+40
|
* Continue #13002 (#13021)Clyybber2020-01-061-1/+1
|
* fixes #12964 (#13027)Andreas Rumpf2020-01-041-0/+14
|
* Fixes #13026 (#13028)cooldome2020-01-041-1/+83
|
* fixes #12961 (#13019)Andreas Rumpf2020-01-031-0/+11
|
* fixes #12978 (#13012)Andreas Rumpf2020-01-031-1/+24
|
* Sink to MemMove optimization in injectdestructors (#13002)cooldome2020-01-021-1/+1
|
* --exception:goto switch for deterministic exception handling (#12977)Andreas Rumpf2020-01-013-0/+228
| | | | | This implements "deterministic" exception handling for Nim based on goto instead of setjmp. This means raising an exception is much cheaper than in C++'s table based implementations. Supports hard realtime systems. Default for --gc:arc and the C target because it's generally a good idea and arc is all about deterministic behavior. Note: This implies that fatal runtime traps are not catchable anymore! This needs to be documented.
* fixes #12989 (#12992)cooldome2019-12-312-1/+10
| | | | | | | * fixes #12989 * Revert "remove unwanted changes" This reverts commit 501829732a8e44deef2d815c303859efbe452cb5.
* fixes #12965 (#12991)Andreas Rumpf2019-12-311-0/+4
|
* Revert "fixes #12989"Andrii Riabushenko2019-12-311-9/+0
| | | | This reverts commit 928c2fee06bd11a0901c5f563b4953788be76ae6.
* fixes #12989Andrii Riabushenko2019-12-311-0/+9
|
* fixes #12826Araq2019-12-241-0/+33
|
* fixes #12899 (#12921)Andreas Rumpf2019-12-181-1/+25
| | | | | | * fixes #12899 * fixes regression: destroy global variables in reverse declaration order, closureleak test relies on it
* ARC: cycle detector (#12823)Andreas Rumpf2019-12-1716-16/+299
| | | | | | | | | | | | | * first implementation of the =trace and =dispose hooks for the cycle collector * a cycle collector for ARC: progress * manual: the .acyclic pragma is a thing once again * gcbench: adaptations for --gc:arc * enable valgrind tests for the strutils tests * testament: better valgrind support * ARC refactoring: growable jumpstacks * ARC cycle detector: non-recursive algorithm * moved and renamed core/ files back to system/ * refactoring: --gc:arc vs --gc:orc since 'orc' is even more experimental and we want to ship --gc:arc soonish
* Fixes #12883 (#12894)cooldome2019-12-131-1/+34
| | | | | | | | | | * fixes #12883 * fix comment * add normalize * fix
* fixes #12882 (#12889)cooldome2019-12-131-0/+18
| | | | * fixes #12882
* ARC: fixes cycle detection and move the .cursor attribute into closures (#12872)Andreas Rumpf2019-12-111-0/+54
|
* ARC: yet another bugfix (#12871)Andreas Rumpf2019-12-101-0/+11
|
* fixes #12827 (#12829) [backport]cooldome2019-12-101-0/+17
|
* fixes #12820 (#12828)cooldome2019-12-091-0/+7
|
* fixes #12821 (#12822)cooldome2019-12-061-0/+16
|
* ARC related bugfixes and refactorings (#12781)Andreas Rumpf2019-12-053-1/+77
|
* fixes #12669Araq2019-11-291-0/+75
|
* fixes #12766Araq2019-11-292-0/+84
|
* ARC: ported the GC tests over to --gc:arcAraq2019-11-261-1/+1
|
* Revert "ARC: another critical bugfix; temporary tuples we introduce for ↵narimiran2019-11-241-1/+1
| | | | | | tuple unpackaging are not owning the data" This reverts commit 8b2f8f5430e8c328efe5bce94e397f15e3c501af.
* ARC: another critical bugfix; temporary tuples we introduce for tuple ↵Araq2019-11-221-1/+1
| | | | unpackaging are not owning the data
* ARC: yet another silly bugfixAraq2019-11-221-0/+29
|
* more arc improvements (#12690)Andreas Rumpf2019-11-201-2/+15
| | | | | * ARC: bugfix for =destroy for inherited objects * added code useful for debugging
* ARC: closure bugfixes (#12677)Andreas Rumpf2019-11-181-0/+19
| | | | | | | | * ARC: closure bugfixes * progress * ARC closures: create =hooks for captured parameters * ARC: always destroy constructions like tuples, arrays properly, even in edge cases * fixes a regression
* ARC: fixes leaking new() statement (#12665)Andreas Rumpf2019-11-151-0/+9
|
* ARC: solves phase ordering problems (#12654)Andreas Rumpf2019-11-141-3/+3
|
* ARC: closure inside object constructor now worksAraq2019-11-132-2/+15
|
* .cursor implementation (#12637)Andreas Rumpf2019-11-121-0/+38
| | | | | | | | | | | * cursors: first implementation * added currently failing test * .cursor works for doubly linked lists * make -d:useMalloc work again * added code to nil out refs in a destructor * it's now called --gc:arc * renderer.nim: render nkBreakState properly * make simple closure iterators work without leaking