Changeset: 801c0d58c32c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=801c0d58c32c
Modified Files:
gdk/gdk_system.mx
Branch: default
Log Message:
Use malloc instead of GDKmalloc.
These calls are totally independent from the rest of the library, so
may as well use malloc.
diffs (39 lines):
diff --git a/gdk/gdk_system.mx b/gdk/gdk_system.mx
--- a/gdk/gdk_system.mx
+++ b/gdk/gdk_system.mx
@@ -460,7 +460,7 @@
if (*wp)
*wp = w->next;
LeaveCriticalSection(&winthread_cs);
- GDKfree(w);
+ free(w);
}
static DWORD WINAPI
@@ -476,7 +476,7 @@
int
MT_create_thread(MT_Id *t, void (*f) (void *), void *arg, enum MT_thr_detach d)
{
- struct winthread *w = GDKmalloc(sizeof(*w));
+ struct winthread *w = malloc(sizeof(*w));
if (winthread_cs_init == 0) {
/* we only get here before any threads are created,
@@ -867,7 +867,7 @@
double lasttime = 0, thistime;
while (1) {
lng t0, t1;
- MT_Id *threads = GDKmalloc(sizeof(MT_Id) * curr);
+ MT_Id *threads = malloc(sizeof(MT_Id) * curr);
t0 = GDKusec();
for (i = 0; i < curr; i++)
@@ -875,7 +875,7 @@
for (i = 0; i < curr; i++)
MT_join_thread(threads[i]);
t1 = GDKusec();
- GDKfree(threads);
+ free(threads);
thistime = (double) (t1 - t0) / 1000000;
if (lasttime > 0 && thistime / lasttime > 1 + SMP_TOLERANCE)
break;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list