File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ main() async {
2929
3030 try {
3131 final buffers = [];
32- for (int i = 0 ; i < 10 * 1000 ; ++ i) {
33- // We issue a 10 MB read but get only a small typed data back. We hang on
34- // to those buffers. If the implementation actually malloc()ed 10 MB then
32+ for (int i = 0 ; i < 100 * 1000 ; ++ i) {
33+ // We issue a 1 MB read but get only a small typed data back. We hang on
34+ // to those buffers. If the implementation actually malloc()ed 1 MB then
3535 // we would hang on to 100 GB and this test would OOM.
3636 // If the implementation instead correctly shrinks the buffer before
3737 // giving it to Dart as external typed data, we only consume ~ 100 KB.
38- buffers.add (await randomAccessFile.read (10 * 1024 * 1024 ));
38+ buffers.add (await randomAccessFile.read (1 * 1024 * 1024 ));
3939 await randomAccessFile.setPosition (0 );
4040
4141 // To avoid machines becoming unusable if the test fails, we'll fail
Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ main() async {
2929
3030 try {
3131 final buffers = [];
32- for (int i = 0 ; i < 10 * 1000 ; ++ i) {
33- // We issue a 10 MB read but get only a small typed data back. We hang on
34- // to those buffers. If the implementation actually malloc()ed 10 MB then
32+ for (int i = 0 ; i < 100 * 1000 ; ++ i) {
33+ // We issue a 1 MB read but get only a small typed data back. We hang on
34+ // to those buffers. If the implementation actually malloc()ed 1 MB then
3535 // we would hang on to 100 GB and this test would OOM.
3636 // If the implementation instead correctly shrinks the buffer before
3737 // giving it to Dart as external typed data, we only consume ~ 100 KB.
38- buffers.add (await randomAccessFile.read (10 * 1024 * 1024 ));
38+ buffers.add (await randomAccessFile.read (1 * 1024 * 1024 ));
3939 await randomAccessFile.setPosition (0 );
4040
4141 // To avoid machines becoming unusable if the test fails, we'll fail
Original file line number Diff line number Diff line change @@ -27,5 +27,5 @@ CHANNEL dev
2727MAJOR 2
2828MINOR 13
2929PATCH 0
30- PRERELEASE 85
30+ PRERELEASE 86
3131PRERELEASE_PATCH 0
You can’t perform that action at this time.
0 commit comments