Skip to content

Commit 632ae0d

Browse files
author
Dart CI
committed
Version 2.13.0-86.0.dev
Merge commit '5c78cc8e9a7ff5986a678d9cd3a70e8bcb765bd1' into 'dev'
2 parents cf3ef9e + 5c78cc8 commit 632ae0d

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

tests/standalone/io/large_file_read_small_file_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

tests/standalone_2/io/large_file_read_small_file_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

tools/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ CHANNEL dev
2727
MAJOR 2
2828
MINOR 13
2929
PATCH 0
30-
PRERELEASE 85
30+
PRERELEASE 86
3131
PRERELEASE_PATCH 0

0 commit comments

Comments
 (0)