[svn:parrot] r43927 - branches/boehm_gc_2/src/gc
bacek at svn.parrot.org
bacek at svn.parrot.org
Sat Feb 13 07:14:50 UTC 2010
Author: bacek
Date: Sat Feb 13 07:14:50 2010
New Revision: 43927
URL: https://trac.parrot.org/parrot/changeset/43927
Log:
Use alloc/copy in reallocate_string instead of GC_REALLOC. This behavior
suits Parrot's strings implementation better.
Modified:
branches/boehm_gc_2/src/gc/gc_boehm.c
Modified: branches/boehm_gc_2/src/gc/gc_boehm.c
==============================================================================
--- branches/boehm_gc_2/src/gc/gc_boehm.c Sat Feb 13 07:14:33 2010 (r43926)
+++ branches/boehm_gc_2/src/gc/gc_boehm.c Sat Feb 13 07:14:50 2010 (r43927)
@@ -334,7 +334,8 @@
{
char *mem;
- mem = (char *)GC_REALLOC(Buffer_bufstart(str), size);
+ mem = (char *)GC_MALLOC_ATOMIC(size);
+ strncpy(mem, str->strstart, str->strlen);
Buffer_bufstart(str) = str->strstart = mem;
Buffer_buflen(str) = size;
More information about the parrot-commits
mailing list