Skip to content

Commit 7cfd85d

Browse files
committed
Merge branch 'main' of github.com:apple/swift-for-wasm-examples into MaxDesiatov-patch-1
2 parents ae19139 + 56f0fb2 commit 7cfd85d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Guest/Sources/dlmalloc/src/dlmalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// WebAssembly doesn't support shrinking linear memory.
1313
#define MORECORE_CANNOT_TRIM 1
1414

15-
// Disable sanity checks to reduce code size.
15+
// Disable checks to reduce code size.
1616
#define ABORT __builtin_unreachable()
1717

1818
// If threads are enabled, enable support for threads.

Guest/Sources/dlmalloc/src/upstream_malloc.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3131,8 +3131,7 @@ static int init_mparams(void) {
31313131
}
31323132
#endif /* WIN32 */
31333133

3134-
/* Sanity-check configuration:
3135-
size_t must be unsigned and as wide as pointer type.
3134+
/* size_t must be unsigned and as wide as pointer type.
31363135
ints must be at least 4 bytes.
31373136
alignment must be at least 8.
31383137
Alignment, min chunk size, and page size must all be powers of 2.

0 commit comments

Comments
 (0)