Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Check owning object wasn't disclaimed.
  • Loading branch information
FROGGS committed May 18, 2015
1 parent e7b8aef commit 3135dfa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -4363,7 +4363,10 @@ public static void scwbObject(ThreadContext tc, SixModelObject obj) {
obj = owner;

SerializationContext compSC = tc.compilingSCs.get(cscSize - 1).referencedSC;
if (obj.sc != compSC) {
if (obj.sc == null) { /* Probably disclaimed. */
return;
}
else if (obj.sc != compSC) {
compSC.repossessObject(obj.sc, obj);
obj.sc = compSC;
}
Expand Down

0 comments on commit 3135dfa

Please sign in to comment.