* src/vm/jit/optimizing/profile.c (profile_thread): Replaced table-
authortwisti <none@none>
Wed, 23 May 2007 17:51:43 +0000 (17:51 +0000)
committertwisti <none@none>
Wed, 23 May 2007 17:51:43 +0000 (17:51 +0000)
with list-functions.

src/vm/jit/optimizing/profile.c

index 9f0a43bf9681f9dd09a76f3b94e053f0577c5a30..b74fe67405d8b735648553737a89db67a55aa643 100644 (file)
@@ -94,19 +94,20 @@ static void profile_thread(void)
                threads_sleep(0, nanos);
                runs++;
 
-               /* lock the threads table */
+               /* lock the threads lists */
 
-               threads_table_lock();
+               threads_list_lock();
 
                /* iterate over all started threads */
 
-               for (t = threads_table_first(); t != NULL; t = threads_table_next(t)) {
+               for (t = threads_list_first(); t != NULL; t = threads_list_next(t)) {
                        /* is this a Java thread? */
 
                        if (!(t->flags & THREAD_FLAG_JAVA))
                                continue;
 
                        /* send SIGUSR2 to thread to get the current PC */
+                       /* XXX write a threads-function for that */
 
                        pthread_kill(t->tid, SIGUSR2);
 
@@ -156,9 +157,9 @@ static void profile_thread(void)
                        }
                }
 
-               /* unlock the threads table */
+               /* unlock the threads lists */
 
-               threads_table_unlock();
+               threads_list_unlock();
        }
 }
 #endif