[svn:parrot] r45690 - branches/immutable_strings_part1/src/string
bacek at svn.parrot.org
bacek at svn.parrot.org
Thu Apr 15 13:15:40 UTC 2010
Author: bacek
Date: Thu Apr 15 13:15:40 2010
New Revision: 45690
URL: https://trac.parrot.org/parrot/changeset/45690
Log:
Remove commented out write_COW. They are actually not required.
Modified:
branches/immutable_strings_part1/src/string/api.c
Modified: branches/immutable_strings_part1/src/string/api.c
==============================================================================
--- branches/immutable_strings_part1/src/string/api.c Thu Apr 15 13:15:28 2010 (r45689)
+++ branches/immutable_strings_part1/src/string/api.c Thu Apr 15 13:15:40 2010 (r45690)
@@ -2266,12 +2266,6 @@
size_t size = Buffer_buflen(s);
char *memory = (char *)mem_internal_allocate(size);
- /* XXX -lt: COW strings have the external_FLAG set, so this will
- * not work for these
- * so probably only sysmem should be tested
- */
- //Parrot_str_write_COW(interp, s);
-
mem_sys_memcopy(memory, Buffer_bufstart(s), size);
Buffer_bufstart(s) = memory;
s->strstart = memory;
@@ -2304,7 +2298,6 @@
if (!PObj_sysmem_TEST(s))
return;
- //Parrot_str_write_COW(interp, s);
size = Buffer_buflen(s);
/* We need a handle on the fixed memory so we can get rid of it later */
More information about the parrot-commits
mailing list