Changeset: 3b67b8fb3836 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3b67b8fb3836
Modified Files:
monetdb5/mal/mal_instruction.c
Branch: default
Log Message:
Don't zap profiler unless really needed.
diffs (17 lines):
diff --git a/monetdb5/mal/mal_instruction.c b/monetdb5/mal/mal_instruction.c
--- a/monetdb5/mal/mal_instruction.c
+++ b/monetdb5/mal/mal_instruction.c
@@ -84,11 +84,8 @@ newMalBlkStmt(MalBlkPtr mb, int maxstmts
mb->stmt = p;
mb->stop = 0;
mb->ssize = maxstmts;
- if (mb->profiler) {
- GDKfree(mb->profiler);
- mb->profiler = (ProfPtr) GDKzalloc((mb->ssize + STMT_INCREMENT)
* sizeof(ProfRecord));
- assert(mb->profiler);
- }
+ if (mb->profiler)
+ mb->profiler = (ProfPtr) GDKrealloc(mb->profiler, (mb->ssize ) *
sizeof(ProfRecord));
return 0;
}
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list