* src/threads/posix/thread-posix.c (threads_detach_thread): Reset
authorChristian Thalinger <twisti@complang.tuwien.ac.at>
Mon, 14 Apr 2008 10:25:37 +0000 (12:25 +0200)
committerChristian Thalinger <twisti@complang.tuwien.ac.at>
Mon, 14 Apr 2008 10:25:37 +0000 (12:25 +0200)
threadgroup when thread has terminated.

src/threads/posix/thread-posix.c

index a7f46458710f0ba05f47df5ce59c8e1034da7aec..645b796d5bc46ff169d30141c60de4842d5a4a1c 100644 (file)
@@ -1336,6 +1336,11 @@ bool threads_detach_thread(threadobject *t)
 
                if (exceptions_get_exception())
                        return false;
+
+               /* Reset the threadgroup in the Java thread object (Mauve
+                  test: gnu/testlet/java/lang/Thread/getThreadGroup). */
+
+               LLNI_field_set_ref(object, group, NULL);
        }
 #endif