|
From: blackh <gra...@li...> - 2003-06-05 21:18:56
|
blackh Thu Jun 5 14:18:50 2003 EDT
Modified files:
/grapevine/cpp Allocator.h
Log:
This will probably fix it.
Index: grapevine/cpp/Allocator.h
diff -u grapevine/cpp/Allocator.h:1.2 grapevine/cpp/Allocator.h:1.3
--- grapevine/cpp/Allocator.h:1.2 Thu Jun 5 05:28:24 2003
+++ grapevine/cpp/Allocator.h Thu Jun 5 14:18:49 2003
@@ -1,4 +1,4 @@
-// $Id: Allocator.h,v 1.2 2003/06/05 12:28:24 blackh Exp $
+// $Id: Allocator.h,v 1.3 2003/06/05 21:18:49 blackh Exp $
#ifndef _ALLOCATOR_H_
#define _ALLOCATOR_H_
@@ -44,6 +44,7 @@
assert(idx < GRAPEVINE_BLOCKSIZES);
void*& freeList = grapevineFreeLists[idx];
if (freeList == NULL) {
+ size = idx*sizeof(void*);
char* buf = new char[size*GRAPEVINE_ATONCE];
void* p = NULL;
for (int i = 0; i < GRAPEVINE_ATONCE; i++) {
|