# HG changeset patch # User Some Random Person # Date 1332176625 25200 # Node ID ce1f57e10face23de0653b3cb40861badb99e50d # Parent d9053472d0dbbe2761d6c3d583c1e301751d3285 bug fix -- initialize coreSlotIsOn -- now works diff -r d9053472d0db -r ce1f57e10fac VMS.h --- a/VMS.h Sat Mar 17 00:41:34 2012 -0700 +++ b/VMS.h Mon Mar 19 10:03:45 2012 -0700 @@ -103,7 +103,7 @@ SlaveVP *slaveAssignedToSlot; int slotIdx; //needed by Holistic Model's data gathering - int coreOfSlot; + int coreSlotIsOn; SlotPerfInfo *perfInfo; //used by assigner to pick best slave for core }; //AnimSlot diff -r d9053472d0db -r ce1f57e10fac VMS__startup_and_shutdown.c --- a/VMS__startup_and_shutdown.c Sat Mar 17 00:41:34 2012 -0700 +++ b/VMS__startup_and_shutdown.c Mon Mar 19 10:03:45 2012 -0700 @@ -29,7 +29,7 @@ //=========================================================================== AnimSlot ** -create_anim_slots(); +create_anim_slots( int32 coreSlotsAreOn ); void create_masterEnv(); @@ -307,7 +307,7 @@ masterVPs[ coreIdx ] = VMS_int__create_slaveVP( (TopLevelFnPtr)&animationMaster, (void*)masterEnv ); masterVPs[ coreIdx ]->coreAnimatedBy = coreIdx; masterVPs[ coreIdx ]->typeOfVP = Master; - allAnimSlots[ coreIdx ] = create_anim_slots(); //makes for one core + allAnimSlots[ coreIdx ] = create_anim_slots( coreIdx ); //makes for one core } _VMSMasterEnv->masterVPs = masterVPs; _VMSMasterEnv->masterLock = UNLOCKED; @@ -331,7 +331,7 @@ } AnimSlot ** -create_anim_slots() +create_anim_slots( int32 coreSlotsAreOn ) { AnimSlot **animSlots; int i; @@ -345,6 +345,7 @@ animSlots[i]->workIsDone = FALSE; animSlots[i]->needsSlaveAssigned = TRUE; animSlots[i]->slotIdx = i; //quick retrieval of slot pos + animSlots[i]->coreSlotIsOn = coreSlotsAreOn; } return animSlots; }