aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2003-06-30 05:49:06 +0000
committerDavid Xu <davidxu@FreeBSD.org>2003-06-30 05:49:06 +0000
commita913c5dd9d67836c9ad1c3e7f622e2e60cfda96f (patch)
tree301f62788b89276b96c7b564aa15404255820067 /lib
parent3d238d9e981227b3bf739a51281e5d200bff3f8c (diff)
downloadsrc-a913c5dd9d67836c9ad1c3e7f622e2e60cfda96f.tar.gz
src-a913c5dd9d67836c9ad1c3e7f622e2e60cfda96f.zip
Remove surplus unlocking code I accidentally checked in. This won't be
triggered until LDT entry is exhausted.
Notes
Notes: svn path=/head/; revision=117063
Diffstat (limited to 'lib')
-rw-r--r--lib/libkse/thread/thr_kern.c4
-rw-r--r--lib/libpthread/thread/thr_kern.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/lib/libkse/thread/thr_kern.c b/lib/libkse/thread/thr_kern.c
index 8a1ecc380443..b0cbac7f9387 100644
--- a/lib/libkse/thread/thr_kern.c
+++ b/lib/libkse/thread/thr_kern.c
@@ -2051,10 +2051,6 @@ _kse_alloc(struct pthread *curthread)
_lockuser_destroy(&kse->k_lockusers[i]);
}
free(kse);
- if (curthread != NULL) {
- KSE_LOCK_RELEASE(curthread->kse, &kse_lock);
- _kse_critical_leave(crit);
- }
return (NULL);
}
kse->k_flags = 0;
diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c
index 8a1ecc380443..b0cbac7f9387 100644
--- a/lib/libpthread/thread/thr_kern.c
+++ b/lib/libpthread/thread/thr_kern.c
@@ -2051,10 +2051,6 @@ _kse_alloc(struct pthread *curthread)
_lockuser_destroy(&kse->k_lockusers[i]);
}
free(kse);
- if (curthread != NULL) {
- KSE_LOCK_RELEASE(curthread->kse, &kse_lock);
- _kse_critical_leave(crit);
- }
return (NULL);
}
kse->k_flags = 0;