Disable migratable memory when the user's thread finishes.
[charm.git] / src / libs / ck-libs / tcharm / tcharm.C
index 730af650938c15ff25feb6453329237070322cee..1483daca9503e9fc2402a570a9f0c27d5e7e27f6 100644 (file)
@@ -74,6 +74,7 @@ static void startTCharmThread(TCharmInitMsg *msg)
        CtvAccess(_curTCharm)->activateHeap();
        typedef void (*threadFn_t)(void *);
        ((threadFn_t)msg->threadFn)(msg->data);
+       CmiIsomallocBlockListActivate(NULL); //Turn off migratable memory
        CtvAccess(_curTCharm)->done();
 }