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/flush2.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/flush2.c')
-rw-r--r-- | test/flush2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/flush2.c b/test/flush2.c index 8e7fb24..982599c 100644 --- a/test/flush2.c +++ b/test/flush2.c @@ -17,6 +17,8 @@ const char *FILENAME[] = { NULL }; +static double the_data[100][100]; + /*------------------------------------------------------------------------- * Function: main @@ -39,7 +41,7 @@ main(void) { hid_t fapl, file, space, dset, groups, grp; hsize_t ds_size[2]; - double the_data[100][100], error; + double error; hsize_t i, j; char name[1024]; |