commit | 02b48d1dae0c3adc01ef6668226fb648fb52990a | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Sep 07 17:15:51 2011 -0700 |
committer | Elliott Hughes <enh@google.com> | Wed Sep 07 17:15:51 2011 -0700 |
tree | c06c4986e1d1c65fbc39225fe330e301f803af24 | |
parent | 6108953a145c1affcadc1e0a91b17e647ee52a02 [diff] [blame] |
Sketch out detaching threads (with partial implementation). Change-Id: Iafe5f91c8170d4f90155f509ba9e2e3d921af66f
diff --git a/src/runtime.cc b/src/runtime.cc index c8f9036..2acf2ec 100644 --- a/src/runtime.cc +++ b/src/runtime.cc
@@ -472,9 +472,7 @@ } void Runtime::DetachCurrentThread() { - Thread* self = Thread::Current(); - thread_list_->Unregister(self); - delete self; + thread_list_->Unregister(); } void Runtime::VisitRoots(Heap::RootVisitor* visitor, void* arg) const {