diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-10-28 21:36:37 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-10-28 21:36:37 (GMT) |
commit | b5fdf0da2151527b9f7625e41ac40cfdceb0f8f3 (patch) | |
tree | 1f2a7f090896e0ac4fffbf4793e22fa126dee9e7 /Modules/threadmodule.c | |
parent | aabdd5480c23120eae18cdf1c45ae71814ac2eb9 (diff) | |
download | cpython-b5fdf0da2151527b9f7625e41ac40cfdceb0f8f3.zip cpython-b5fdf0da2151527b9f7625e41ac40cfdceb0f8f3.tar.gz cpython-b5fdf0da2151527b9f7625e41ac40cfdceb0f8f3.tar.bz2 |
Backport 52501:
Add some asserts. In sysmodule, I think these were to try to silence
some warnings from Klokwork. They verify the assumptions of the format
of svn version output.
The assert in the thread module helped debug a problem on HP-UX.
Diffstat (limited to 'Modules/threadmodule.c')
-rw-r--r-- | Modules/threadmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 448b11c..036619a 100644 --- a/Modules/threadmodule.c +++ b/Modules/threadmodule.c @@ -25,6 +25,7 @@ typedef struct { static void lock_dealloc(lockobject *self) { + assert(self->lock_lock); /* Unlock the lock so it's safe to free it */ PyThread_acquire_lock(self->lock_lock, 0); PyThread_release_lock(self->lock_lock); |