From bdbf6060ea5df98ab2a6cd4be0c99e347b65e737 Mon Sep 17 00:00:00 2001 From: Mohan Embar Date: Sat, 11 Sep 2004 19:10:44 +0000 Subject: [PATCH] natThread.cc (finalize_native): Destroy join conditional variable and mutex if... * java/lang/natThread.cc (finalize_native): Destroy join conditional variable and mutex if these destroy operations are supported. From-SVN: r87361 --- libjava/ChangeLog | 6 ++++++ libjava/java/lang/natThread.cc | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 1bd4ccc34c5..d3a6cea9bba 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2004-09-11 Mohan Embar + + * java/lang/natThread.cc (finalize_native): Destroy + join conditional variable and mutex if these destroy + operations are supported. + 2004-09-10 Dalibor Topic * gnu/java/net/protocol/file/Connection.java (permission): New field. diff --git a/libjava/java/lang/natThread.cc b/libjava/java/lang/natThread.cc index ea235ce3789..4782115d2cf 100644 --- a/libjava/java/lang/natThread.cc +++ b/libjava/java/lang/natThread.cc @@ -78,6 +78,12 @@ finalize_native (jobject ptr) { natThread *nt = (natThread *) ptr; _Jv_ThreadDestroyData (nt->thread); +#ifdef _Jv_HaveCondDestroy + _Jv_CondDestroy (&nt->join_cond); +#endif +#ifdef _Jv_HaveMutexDestroy + _Jv_MutexDestroy (&nt->join_mutex); +#endif } jint -- 2.30.2