Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Handling of Pointer PMC in serializer.
  • Loading branch information
jnthn committed Feb 25, 2012
1 parent 947ad8b commit cca9005
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/6model/serialization.c
Expand Up @@ -400,6 +400,11 @@ void write_ref_func(PARROT_INTERP, SerializationWriter *writer, PMC *ref) {
else if (PMC_IS_NULL(ref) || ref->vtable->base_type == enum_class_Undef) {
discrim = REFVAR_VM_NULL;
}
else if (ref->vtable->base_type == enum_class_Pointer) {
/* This is really being used to hang caches off in Rakudo, at least. So
* we just drop it. */
discrim = REFVAR_VM_NULL;
}
else if (ref->vtable->base_type == smo_id) {
discrim = REFVAR_OBJECT;
}
Expand Down

0 comments on commit cca9005

Please sign in to comment.