From 1e4f3937fda8e6015d7471006ea6e3de09b8e9f4 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Tue, 30 Oct 2007 16:26:29 +0000 Subject: [PATCH] Fixed bug that only occurs during nightly (more thorough) regression runs; stack allocation was failing. --- test/stasis/check_bufferManager.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/stasis/check_bufferManager.c b/test/stasis/check_bufferManager.c index 9f530c0..ad7f50a 100644 --- a/test/stasis/check_bufferManager.c +++ b/test/stasis/check_bufferManager.c @@ -101,7 +101,8 @@ static pthread_mutex_t ralloc_mutex; void * workerThreadWriting(void * q) { int offset = *(int*)q; - recordid rids[RECORDS_PER_THREAD]; + recordid * rids; + rids = malloc(RECORDS_PER_THREAD * sizeof(recordid)); int xid = Tbegin(); int num_ops = 0; @@ -171,7 +172,7 @@ void * workerThreadWriting(void * q) { } Tcommit(xid); - + free(rids); return NULL; }