diff src/c/driver.c @ 324:b91480c9a729

More opportunities to use regions and lack of string copying
author Adam Chlipala <adamc@hcoop.net>
date Thu, 11 Sep 2008 13:06:51 -0400
parents 9ad92047a499
children e756d3a47726
line wrap: on
line diff
--- a/src/c/driver.c	Thu Sep 11 12:40:40 2008 -0400
+++ b/src/c/driver.c	Thu Sep 11 13:06:51 2008 -0400
@@ -52,8 +52,8 @@
 #define MAX_RETRIES 5
 
 static void *worker(void *data) {
-  int me = *(int *)data, retries_left = MAX_RETRIES;;
-  uw_context ctx = uw_init(1024, 1024);
+  int me = *(int *)data, retries_left = MAX_RETRIES;
+  uw_context ctx = uw_init(1024, 0);
   
   while (1) {
     failure_kind fk = uw_begin_init(ctx);
@@ -224,6 +224,7 @@
         uw_send(ctx, sock);
 
         printf("Done with client.\n\n");
+        uw_memstats(ctx);
         break;
       }
     }