summary refs log tree commit diff stats
path: root/lib/system/strs_v2.nim
Commit message (Collapse)AuthorAgeFilesLines
* rename prepareStrMutation to prepareMutation (#17235)flywind2021-03-031-2/+2
| | | | | | | * remove unnecessary when statement * remove outdated codes * rename prepareStrMutation to prepareMutation
* add runnableExamples for prepareStrMutation (#17227)flywind2021-03-021-1/+1
| | | | | * Update lib/system.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* fixes #17173 (#17213)Andreas Rumpf2021-03-011-0/+7
| | | | | | | | | | | | | | | | | | | | | | * fixes #17173 * add testcase (#17214) * Apply suggestions from code review * fix for newruntime * Apply suggestions from code review * Update lib/system.nim * Update lib/system.nim * Update lib/system.nim Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com> Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>
* fixes #16365 [backport] (#16381)Andreas Rumpf2020-12-171-6/+7
|
* arc allocation method aligned (#15588)cooldome2020-10-191-8/+32
| | | | | * progress * fix typo
* ORC and stdlib optimizations (#15362)Andreas Rumpf2020-09-191-1/+2
|
* optimize the new nimPrepareStrMutationV2 with inlining (#14969)Andreas Rumpf2020-07-121-6/+9
|
* ARC/ORC: optimize s.setLen(0) to match the old runtime's behaviour (#14423)Andreas Rumpf2020-05-211-2/+1
|
* fixes #13457 (#13458)Andreas Rumpf2020-02-211-10/+11
|
* TlSF Alloctor: use less memory for --gc:arc (#13280)Andreas Rumpf2020-01-281-1/+1
|
* Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses ↵Ico Doornekamp2020-01-231-32/+20
| | | | | | | | | | | | | | | | | | | | | | | | | 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 #12965 (#12991)Andreas Rumpf2019-12-311-10/+11
|
* ARC: cycle detector (#12823)Andreas Rumpf2019-12-171-0/+152
* 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