Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensure boot types go in the core SC.
  • Loading branch information
jnthn committed Mar 9, 2013
1 parent b2d6b35 commit 3ee9559
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/org/perl6/nqp/sixmodel/KnowHOWBootstrapper.java
Expand Up @@ -139,6 +139,15 @@ private static SixModelObject bootType(ThreadContext tc, String typeName, String
SixModelObject type_obj = repr.type_object_for(tc, meta_obj);
type_obj.st.MethodCache = meta_obj.methods;
type_obj.st.ModeFlags = STable.METHOD_CACHE_AUTHORITATIVE;

SerializationContext sc = tc.gc.scs.get("__6MODEL_CORE__");
sc.root_objects.add(type_obj);
type_obj.sc = sc;
sc.root_objects.add(type_obj.st.HOW);
type_obj.st.HOW.sc = sc;
sc.root_stables.add(type_obj.st);
type_obj.st.sc = sc;

return type_obj;
}

Expand Down

0 comments on commit 3ee9559

Please sign in to comment.