coreRuntime/src/sc/sync/SyncManager.java
public void commitNewObjNames(SyncContext clientContext) {
         if (this != clientContext)
            return;
         for (Map.Entry<Object,InstInfo> nameEnt: syncInsts.entrySet()) {
            InstInfo ii = nameEnt.getValue();
            // inherited types are not initialized so that test by itself is not good enough.  The key here is to avoid
            // marking on-demand objects as registered until we've sent their name across.  Maybe we need another flag for that?
            if (!ii.registered && ii.nameQueued)
               ii.registered = true;
         }
      }
// After a successful sync, everything is registered.  Don't touch the parent context since it is shared with other clients
After a successful sync, everything is registered.  Don't touch the parent context since it is shared with other clients
After a successful sync everything is registered . Don ' t touch the parent context since it is shared with other clients
public void commitNewObjNames(SyncContext clientContext) {
         if (this != clientContext)
            return;
         for (Map.Entry<Object,InstInfo> nameEnt: syncInsts.entrySet()) {
            InstInfo ii = nameEnt.getValue();
            if (!ii.registered && ii.nameQueued)
               ii.registered = true;
         }
      }
public void commitNewObjNames ( SyncContext clientContext ) { if ( this != clientContext ) return ; for ( Map . Entry < Object , InstInfo > nameEnt : syncInsts . entrySet ( ) ) { InstInfo ii = nameEnt . getValue ( ) ; if ( ! ii . registered && ii . nameQueued ) ii . registered = true ; } }
After a successful sync, everything is registered.
After a successful sync everything is registered .
// inherited types are not initialized so that test by itself is not good enough.  The key here is to avoid // marking on-demand objects as registered until we've sent their name across.  Maybe we need another flag for that?