Removed heap_addreference.
authortwisti <none@none>
Sat, 13 Dec 2003 22:20:33 +0000 (22:20 +0000)
committertwisti <none@none>
Sat, 13 Dec 2003 22:20:33 +0000 (22:20 +0000)
src/threads/green/threads.c
threads/thread.c

index 4d39c5de53425faf484f9fa1364b2f1069bf190f..a0e301fb7e86e17a4d0eadbf1b634de608494cb1 100644 (file)
@@ -133,13 +133,11 @@ initThreads(u1 *stackbottom)
     for (i = 0; i < MAXTHREADS; ++i) {
                contexts[i].free = true;
                contexts[i].thread = NULL;
-               heap_addreference((void**)&contexts[i].thread);
        }
 
     /* Allocate a thread to be the main thread */
     liveThreads = the_main_thread = (thread*)builtin_new(loader_load_sysclass(NULL,utf_new_char("java/lang/Thread")));
     assert(the_main_thread != 0);
-       /* heap_addreference((void **) &liveThreads); */
     
     the_main_thread->PrivateInfo = 1;
     CONTEXT(the_main_thread).free = false;
@@ -202,8 +200,6 @@ printf("DEADCODE LIVES ?????????\n");fflush(stdout);
 
     mainThread = currentThread = the_main_thread;
 
-       /* heap_addreference((void**)&mainThread); */
-
        /* Add thread into runQ */
        iresumeThread(mainThread);
 
index 4d39c5de53425faf484f9fa1364b2f1069bf190f..a0e301fb7e86e17a4d0eadbf1b634de608494cb1 100644 (file)
@@ -133,13 +133,11 @@ initThreads(u1 *stackbottom)
     for (i = 0; i < MAXTHREADS; ++i) {
                contexts[i].free = true;
                contexts[i].thread = NULL;
-               heap_addreference((void**)&contexts[i].thread);
        }
 
     /* Allocate a thread to be the main thread */
     liveThreads = the_main_thread = (thread*)builtin_new(loader_load_sysclass(NULL,utf_new_char("java/lang/Thread")));
     assert(the_main_thread != 0);
-       /* heap_addreference((void **) &liveThreads); */
     
     the_main_thread->PrivateInfo = 1;
     CONTEXT(the_main_thread).free = false;
@@ -202,8 +200,6 @@ printf("DEADCODE LIVES ?????????\n");fflush(stdout);
 
     mainThread = currentThread = the_main_thread;
 
-       /* heap_addreference((void**)&mainThread); */
-
        /* Add thread into runQ */
        iresumeThread(mainThread);