Minor changes to migration-warning wording: architectures like
authorOrion Lawlor <olawlor@acm.org>
Tue, 11 Jun 2002 17:47:15 +0000 (17:47 +0000)
committerOrion Lawlor <olawlor@acm.org>
Tue, 11 Jun 2002 17:47:15 +0000 (17:47 +0000)
win32 won't be able to migrate *threads* because they don't have
mmap.  Threads work, migration (of non-threads) works, just not
both at once.

Also rationalized warnings a bit, so you're only warned once.

src/conv-core/isomalloc.c
src/conv-core/threads.c

index 04d3a7f3e748fdd66aa16137c69c5084f8bee2b2..939cae043e390e7e971bcde5c0ca810d1f4fbd50 100644 (file)
@@ -236,7 +236,7 @@ map_slots(int slot, int nslots)
                map_warned=1;
                if (CmiMyPe()==0)
                        CmiError("isomalloc.c> Warning: since mmap() doesn't work,"
-                       " you won't be able to migrate\n");
+                       " you won't be able to migrate threads\n");
        }
 
        return malloc(slotsize*nslots);
index 51406d259db2185ea5597ba85993e47dc3e406ed..e00289d6049a7916d9581b07f1d6e73b4bdd22ad 100644 (file)
@@ -786,7 +786,6 @@ CthThread CthPup(pup_er p, CthThread t)
 CthThread CthCreateMigratable(CthVoidFn fn,void *arg,int size)
 {
   /*Fibers are never migratable, unless we can figure out how to set their stacks*/
-  CmiPrintf("(Fiber CthCreateMigratable) WARNING: Threads will not be able to migrate!\n");
   return CthCreate(fn,arg,size);
 }
 
@@ -909,7 +908,6 @@ CthThread CthPup(pup_er p, CthThread t)
 CthThread CthCreateMigratable(CthVoidFn fn,void *arg,int size)
 {
   /*Pthreads are never migratable, unless we can figure out how to set their stacks*/
-  CmiPrintf("(Pthread CthCreateMigratable) WARNING: Threads will not be able to migrate!\n");
   return CthCreate(fn,arg,size);
 }