summaryrefslogtreecommitdiffstats
path: root/test/dsets.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-04-01 03:27:34 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-04-01 03:27:34 (GMT)
commit4650caa3a614a291936be3ac668dbc1baecb0c79 (patch)
treeb989ed4f93f605bcef490c603b586d421699a5e3 /test/dsets.c
parente7e8b02c3a1a01aaf61560079504a6d04eb482d3 (diff)
downloadhdf5-4650caa3a614a291936be3ac668dbc1baecb0c79.zip
hdf5-4650caa3a614a291936be3ac668dbc1baecb0c79.tar.gz
hdf5-4650caa3a614a291936be3ac668dbc1baecb0c79.tar.bz2
[svn-r3746] Purpose:
Code tweak Description: Large data arrays were being created on the stack. Solution: Hoisted the data variables out of the function(s) and make into static variables. Platforms tested: FreeBSD 4.3 (hawkwind)
Diffstat (limited to 'test/dsets.c')
-rw-r--r--test/dsets.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dsets.c b/test/dsets.c
index 8653718..59f16f9 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -24,6 +24,9 @@ const char *FILENAME[] = {
#define H5Z_BOGUS 305
+/* Shared global arrays */
+int points[100][200], check[100][200];
+
/*-------------------------------------------------------------------------
* Function: test_create
@@ -175,7 +178,6 @@ static herr_t
test_simple_io(hid_t file)
{
hid_t dataset, space, xfer;
- int points[100][200], check[100][200];
int i, j, n;
hsize_t dims[2];
void *tconv_buf = NULL;
@@ -360,7 +362,6 @@ static herr_t
test_compression(hid_t file)
{
hid_t dataset, space, xfer, dc;
- int points[100][200], check[100][200];
const hsize_t size[2] = {100, 200};
const hsize_t chunk_size[2] = {2, 25};
const hssize_t hs_offset[2] = {7, 30};