aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorAdam Megacz <adam@xwt.org>2002-02-25 02:01:29 +0000
committerAdam Megacz <megacz@gcc.gnu.org>2002-02-25 02:01:29 +0000
commit2e8f5b2dde5709cd3be658bd3e2c8acac9f03a61 (patch)
tree6aa5ab51437bb65b9713341a29ce82a68d9ddd3d /libjava
parentf5d8c6600c451680d58b6c84d0a24be6e8693e8b (diff)
downloadgcc-2e8f5b2dde5709cd3be658bd3e2c8acac9f03a61.zip
gcc-2e8f5b2dde5709cd3be658bd3e2c8acac9f03a61.tar.gz
gcc-2e8f5b2dde5709cd3be658bd3e2c8acac9f03a61.tar.bz2
win32-threads.cc (_Jv_ThreadInitData): _Jv_Malloc instead of new
2002-02-24 Adam Megacz <adam@xwt.org> * win32-threads.cc (_Jv_ThreadInitData): _Jv_Malloc instead of new * win32-threads.cc (_Jv_ThreadDestroyData): _Jv_Free instead of delete From-SVN: r50014
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog6
-rw-r--r--libjava/win32-threads.cc4
2 files changed, 8 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 57e33df..c20386a 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,5 +1,11 @@
2002-02-24 Adam Megacz <adam@xwt.org>
+ * win32-threads.cc (_Jv_ThreadInitData): _Jv_Malloc instead of new
+ * win32-threads.cc (_Jv_ThreadDestroyData): _Jv_Free instead of
+ delete
+
+2002-02-24 Adam Megacz <adam@xwt.org>
+
* java/lang/Win32Process.java: Created a dummy class to allow
build process to run to completion.
diff --git a/libjava/win32-threads.cc b/libjava/win32-threads.cc
index 1ae4de1..d31c191 100644
--- a/libjava/win32-threads.cc
+++ b/libjava/win32-threads.cc
@@ -173,7 +173,7 @@ _Jv_InitThreads (void)
_Jv_Thread_t *
_Jv_ThreadInitData (java::lang::Thread* obj)
{
- _Jv_Thread_t *data = new _Jv_Thread_t;
+ _Jv_Thread_t *data = (_Jv_Thread_t*)_Jv_Malloc(sizeof(_Jv_Thread_t));
data->flags = 0;
data->thread_obj = obj;
@@ -183,7 +183,7 @@ _Jv_ThreadInitData (java::lang::Thread* obj)
void
_Jv_ThreadDestroyData (_Jv_Thread_t *data)
{
- delete data;
+ _Jv_Free(data);
}
void