summary refs log tree commit diff stats
path: root/lib/system/strs_v2.nim
Commit message (Collapse)AuthorAgeFilesLines
* fix nimrtl and nimhcr on arc/orc (#21814)metagn2023-05-091-2/+2
| | | | | | | | | | | * fix/workaround for nimrtl and nimhcr on arc/orc fixes #21803 * try fix clang, debug linux failure * just make duplicated procs not rtl * actual fix for duplicated procs
* tyInt tyUint fit target int bit width (#20829)Bung2022-12-011-1/+1
|
* fixes ptr to cstring warnings[backport] (#20848)ringabout2022-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix =#13790 ptr char (+friends) should not implicitly convert to cstring * Apply suggestions from code review * first round; compiles on windows * nimPreviewSlimSystem * conversion is unsafe, cast needed * fixes more tests * fixes asyncnet * another try another error * last one * true * one more * why bugs didn't show at once * add `nimPreviewCstringConversion` switch * typo * fixes ptr to cstring warnings[backport] * add fixes Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* RFC-460 implemented (#19771)Juan Carlos2022-09-211-0/+16
| | | | | | | | | * RFC-460 implemented * RFC-460 implemented * RFC-460 implemented * Fix dumb GitHub autoupdate on changelog
* 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