diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-04-01 03:27:34 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-04-01 03:27:34 (GMT) |
commit | 4650caa3a614a291936be3ac668dbc1baecb0c79 (patch) | |
tree | b989ed4f93f605bcef490c603b586d421699a5e3 /test/flush1.c | |
parent | e7e8b02c3a1a01aaf61560079504a6d04eb482d3 (diff) | |
download | hdf5-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/flush1.c')
-rw-r--r-- | test/flush1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/flush1.c b/test/flush1.c index 9ab18f4..ea2c818 100644 --- a/test/flush1.c +++ b/test/flush1.c @@ -18,6 +18,8 @@ const char *FILENAME[] = { NULL }; +static double the_data[100][100]; + /*------------------------------------------------------------------------- * Function: main @@ -41,7 +43,6 @@ main(void) hid_t fapl, file, dcpl, space, dset, groups, grp; hsize_t ds_size[2] = {100, 100}; hsize_t ch_size[2] = {5, 5}; - double the_data[100][100]; hsize_t i, j; char name[1024]; |