summary refs log tree commit diff stats
path: root/tests/destructor/tgcdestructors.nim
Commit message (Collapse)AuthorAgeFilesLines
* deprecate newruntime (#17245)flywind2021-03-041-1/+1
| | | | | | * deprecate newruntime * tests * Update compiler/commands.nim
* fix #14421 items uses lent T (#14447)Timothee Cour2020-05-291-1/+1
| | | | | * fix #14421 items uses lent T for seq + openArray * add -d:nimWorkaround14447 * fix test
* ARC/ORC: optimize s.setLen(0) to match the old runtime's behaviour (#14423)Andreas Rumpf2020-05-211-1/+1
|
* fixes #12747 [backport] (#13651)cooldome2020-03-161-1/+1
| | | | | | | * fixes #12747 * fix tests * improve code style Co-authored-by: cooldome <ariabushenko@bk.ru>
* contributing docs: symbols need package prefix; changed allocStats to ↵Timothee Cour2020-01-251-1/+1
| | | | nimAllocStats (#13247)
* Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses ↵Ico Doornekamp2020-01-231-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* ARC: cycle detector (#12823)Andreas Rumpf2019-12-171-1/+1
| | | | | | | | | | | | | * 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 #11614Araq2019-07-011-0/+12
|
* fixes #11098Andreas Rumpf2019-06-261-1/+13
|
* [bugfix] fixes #11524Andreas Rumpf2019-06-221-1/+10
|
* fixes #11065Araq2019-04-221-2/+20
|
* fixes #11050Araq2019-04-171-1/+20
|
* newruntime: fixes another bugAraq2019-04-101-1/+47
|
* destructors: we are cooking nowAraq2019-04-061-2/+3
|
* destructors: progressAndreas Rumpf2019-04-051-2/+2
|
* simple program works with --newruntimeAraq2019-04-021-11/+11
|
* revert discard in destroyer (#10840)cooldome2019-03-151-0/+1
| | | | | | * revert discard in destroyer * disable test
* gc:destructors: progressAndreas Rumpf2019-02-281-1/+64
|
* gc:destructors: progressAndreas Rumpf2019-02-211-1/+10
|
* gc:destructors: add first test programAndreas Rumpf2019-02-191-0/+17