diff options
-rw-r--r-- | libjava/ChangeLog | 6 | ||||
-rw-r--r-- | libjava/win32-threads.cc | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 57e33df503c..c20386a96a1 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 1ae4de1055b..d31c1919a1e 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 |