Nim/tests/destructor
Ico Doornekamp b68eb1cad0 Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses 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
2020-01-23 14:25:22 +01:00
..
const_smart_ptr.nim fixes #12766 2019-11-29 19:46:21 +01:00
helper.nim destructors: first step towards fixing #9617 (#10341) 2019-01-18 08:51:22 +01:00
objFile.nim Fix destructor injections for global variables (#11230) 2019-05-13 08:28:33 +02:00
smart_ptr.nim make sink operator optional (#13068) 2020-01-17 11:44:06 +00:00
t7346.nim make megatest green again 2019-03-05 08:17:30 +01:00
t12037.nim fixes #12989 (#12992) 2019-12-31 21:13:26 +01:00
tarc.nim fixes #13105 (#13138) 2020-01-14 12:57:20 +01:00
tarc2.nim ARC: cycle detector (#12823) 2019-12-17 17:37:50 +01:00
tarc3.nim fixes #13195 (#13198) 2020-01-20 10:41:12 +01:00
tarctypesections.nim ARC: cycle detector (#12823) 2019-12-17 17:37:50 +01:00
tarray_indexing.nim fixes #12669 2019-11-29 19:46:21 +01:00
tasync_prototype.nim ARC: fixes cycle detection and move the .cursor attribute into closures (#12872) 2019-12-11 06:57:00 +01:00
tasync_prototype_cyclic.nim ARC: cycle detector (#12823) 2019-12-17 17:37:50 +01:00
tatomicptrs.nim fixes #12882 (#12889) 2019-12-13 11:24:05 +00:00
tbintree2.nim Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses allocShared0. (#13190) 2020-01-23 14:25:22 +01:00
tcaseobj_transitions.nim fixes #12821 (#12822) 2019-12-06 09:56:54 +01:00
tcast.nim make tests green again 2019-03-04 22:44:23 +01:00
tcomplexobjconstr.nim fixes #12978 (#13012) 2020-01-03 01:21:45 +01:00
tconst_smart_ptr.nim fixes #12766 2019-11-29 19:46:21 +01:00
tconsume_twice.nim fixes #11257 2019-05-24 00:44:49 +02:00
tcustomseqs.nim make megatest green again 2019-03-05 08:17:30 +01:00
tcustomstrings.nim make megatest green again 2019-03-05 08:17:30 +01:00
tcycle1.nim ARC: cycle detector (#12823) 2019-12-17 17:37:50 +01:00
tcycle2.nim ARC: cycle detector (#12823) 2019-12-17 17:37:50 +01:00
tcycle3.nim ARC: cycle detector (#12823) 2019-12-17 17:37:50 +01:00
tdangingref_simple.nim fixes #11350 2019-07-07 17:17:14 +02:00
tdestructor.nim make sink operator optional (#13068) 2020-01-17 11:44:06 +00:00
tdestructor3.nim Fixes #12883 (#12894) 2019-12-13 13:30:27 +00:00
tdestructor_too_late.nim fixes #12092 2019-08-31 09:49:47 +01:00
tdont_return_unowned_from_owned.nim fix tests 2019-07-08 15:24:20 -07:00
terror_module.nim destructors: first step towards fixing #9617 (#10341) 2019-01-18 08:51:22 +01:00
texceptions.nim ARC related bugfixes and refactorings (#12781) 2019-12-05 16:59:06 +01:00
texplicit_move.nim Fix destructor injections for global variables (#11230) 2019-05-13 08:28:33 +02:00
tfinalizer.nim fixes #13112 (#13127) 2020-01-13 15:47:17 +01:00
tgcdestructors.nim Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses allocShared0. (#13190) 2020-01-23 14:25:22 +01:00
tgcleak4.nim ARC related bugfixes and refactorings (#12781) 2019-12-05 16:59:06 +01:00
tglobaldestructor.nim Fix destructor injections for global variables (#11230) 2019-05-13 08:28:33 +02:00
tgotoexceptions.nim --exception:goto switch for deterministic exception handling (#12977) 2020-01-01 10:01:49 +01:00
tgotoexceptions2.nim --exception:goto switch for deterministic exception handling (#12977) 2020-01-01 10:01:49 +01:00
tgotoexceptions3.nim --exception:goto switch for deterministic exception handling (#12977) 2020-01-01 10:01:49 +01:00
tgotoexceptions4.nim fixes #13070 2020-01-10 08:32:30 +01:00
tinvalid_rebind.nim more destructor based changes (#10885) 2019-03-23 00:12:05 +01:00
tmatrix.nim dfa.nim: track object/tuple field accesses more precisely; sink(o.x); sink(o.y) needs to compile; activate the tuple unpacking transf.nim bugfix 2019-04-16 10:35:43 +02:00
tmisc_destructors.nim Continue #13002 (#13021) 2020-01-06 11:40:42 +00:00
tmove_objconstr.nim ARC: solves phase ordering problems (#12654) 2019-11-14 23:19:18 +01:00
tnewruntime_misc.nim Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses allocShared0. (#13190) 2020-01-23 14:25:22 +01:00
tnewruntime_strutils.nim Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses allocShared0. (#13190) 2020-01-23 14:25:22 +01:00
tobjfield_analysis.nim fixes #11095 (#11104) 2019-04-25 07:59:34 +02:00
topt.nim make tests green again 2019-05-27 21:29:02 +02:00
topttree.nim more destructor based changes (#10885) 2019-03-23 00:12:05 +01:00
towned_binary_tree.nim fixes #11053 2019-04-19 18:02:43 +02:00
tprevent_assign.nim don't require an implementation for procs marked with .error; activate the move optimizer for destructors 2018-09-29 16:54:59 +02:00
tprevent_assign2.nim Change the order of compilation passes, transformation is made lazy at code gen (#8489) 2018-10-18 20:21:25 +02:00
tprevent_assign3.nim Change the order of compilation passes, transformation is made lazy at code gen (#8489) 2018-10-18 20:21:25 +02:00
trecursive.nim Size ptr tuple (#10846) 2019-03-18 11:37:09 +01:00
tselect.nim ARC: cycle detector (#12823) 2019-12-17 17:37:50 +01:00
tsetjmp_raise.nim fixes #12961 (#13019) 2020-01-03 14:30:54 +01:00
tsimpleclosure.nim Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses allocShared0. (#13190) 2020-01-23 14:25:22 +01:00
ttuple.nim Fixes #13026 (#13028) 2020-01-04 02:33:13 +01:00
turn_destroy_into_finalizer.nim testament: joinable is now an explicit concept of a test spec 2018-12-11 21:23:24 +01:00
tuse_ownedref_after_move.nim Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses allocShared0. (#13190) 2020-01-23 14:25:22 +01:00
tuse_result_prevents_sinks.nim make tests green again 2019-03-05 20:05:47 +01:00
tv2_cast.nim fixes #11833 (#12018) 2019-08-24 06:25:47 +02:00
tv2_raise.nim Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses allocShared0. (#13190) 2020-01-23 14:25:22 +01:00
twidgets.nim Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses allocShared0. (#13190) 2020-01-23 14:25:22 +01:00
twidgets_unown.nim Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses allocShared0. (#13190) 2020-01-23 14:25:22 +01:00