Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Disable the seen strings optimization for now; for some reason, a dod…
…gy string sneaks in somewhere along the way, and on some platforms that leads to segfaults. Need to hunt this down for real, but this at least seems to fix the build.
  • Loading branch information
jnthn committed Mar 1, 2012
1 parent 52bf76b commit c314198
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/6model/serialization.c
Expand Up @@ -90,13 +90,13 @@ static Parrot_Int4 add_string_to_heap(PARROT_INTERP, SerializationWriter *writer
* so can just hand back 0 here. */
return 0;
}
else if (VTABLE_exists_keyed_str(interp, writer->seen_strings, s)) {
/*else if (VTABLE_exists_keyed_str(interp, writer->seen_strings, s)) {
return (Parrot_Int4)VTABLE_get_integer_keyed_str(interp, writer->seen_strings, s);
}
else {
else*/ {
INTVAL next_idx = VTABLE_elements(interp, writer->root.string_heap);
VTABLE_set_string_keyed_int(interp, writer->root.string_heap, next_idx, s);
VTABLE_set_integer_keyed_str(interp, writer->seen_strings, s, next_idx);
/*VTABLE_set_integer_keyed_str(interp, writer->seen_strings, s, next_idx);*/
return (Parrot_Int4)next_idx;
}
}
Expand Down

0 comments on commit c314198

Please sign in to comment.