Disable migratable memory when the user's thread finishes.
authorOrion Lawlor <olawlor@acm.org>
Fri, 5 Apr 2002 20:30:25 +0000 (20:30 +0000)
committerOrion Lawlor <olawlor@acm.org>
Fri, 5 Apr 2002 20:30:25 +0000 (20:30 +0000)
Without this, all allocations after the thread dies were still
migratable!

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();
 }