@@ -1524,7 +1524,7 @@ def test_idbstore_sync(self, asyncify):
1524
1524
1525
1525
def test_idbstore_sync_worker (self ):
1526
1526
secret = str (time .time ())
1527
- self .btest ('test_idbstore_sync_worker.c' , expected = '0' , args = ['-lidbstore.js' , f'-DSECRET="{ secret } "' , '-O3' , '-g2' , '--proxy-to-worker' , '-sINITIAL_MEMORY=80MB' , '- sASYNCIFY' ])
1527
+ self .btest ('test_idbstore_sync_worker.c' , expected = '0' , args = ['-lidbstore.js' , f'-DSECRET="{ secret } "' , '-O3' , '-g2' , '--proxy-to-worker' , '-sASYNCIFY' ])
1528
1528
1529
1529
def test_force_exit (self ):
1530
1530
self .btest_exit ('force_exit.c' , assert_returncode = 10 )
@@ -2273,10 +2273,10 @@ def test_sdl_canvas_palette_2(self):
2273
2273
self .btest ('test_sdl_canvas_palette_2.c' , reference = 'browser/test_sdl_canvas_palette_b.png' , args = ['--pre-js' , 'pre.js' , '--pre-js' , 'args-b.js' , '-lSDL' , '-lGL' ])
2274
2274
2275
2275
def test_sdl_ttf_render_text_solid (self ):
2276
- self .btest ('test_sdl_ttf_render_text_solid.c' , reference = 'browser/test_sdl_ttf_render_text_solid.png' , args = ['-O2' , '-sINITIAL_MEMORY=16MB' , '- lSDL' , '-lGL' ])
2276
+ self .btest ('test_sdl_ttf_render_text_solid.c' , reference = 'browser/test_sdl_ttf_render_text_solid.png' , args = ['-O2' , '-lSDL' , '-lGL' ])
2277
2277
2278
2278
def test_sdl_alloctext (self ):
2279
- self .btest_exit ('test_sdl_alloctext.c' , args = ['-sINITIAL_MEMORY=16MB' , '- lSDL' , '-lGL' ])
2279
+ self .btest_exit ('test_sdl_alloctext.c' , args = ['-lSDL' , '-lGL' ])
2280
2280
2281
2281
def test_sdl_surface_refcount (self ):
2282
2282
self .btest_exit ('test_sdl_surface_refcount.c' , args = ['-lSDL' ])
@@ -3240,7 +3240,7 @@ def test_sdl2_canvas_palette_2(self):
3240
3240
3241
3241
@no_wasm64 ('SDL2 + wasm64' )
3242
3242
def test_sdl2_swsurface (self ):
3243
- self .btest_exit ('test_sdl2_swsurface.c' , args = ['-sUSE_SDL=2' , '-sINITIAL_MEMORY=64MB' ])
3243
+ self .btest_exit ('test_sdl2_swsurface.c' , args = ['-sUSE_SDL=2' ])
3244
3244
3245
3245
@no_wasm64 ('SDL2 + wasm64' )
3246
3246
@requires_graphics_hardware
@@ -3406,7 +3406,7 @@ def test_sdl2_misc_via_object(self):
3406
3406
@requires_sound_hardware
3407
3407
def test_sdl2_mixer_wav (self , flags ):
3408
3408
shutil .copyfile (test_file ('sounds/the_entertainer.wav' ), 'sound.wav' )
3409
- self .btest_exit ('test_sdl2_mixer_wav.c' , args = ['--preload-file' , 'sound.wav' , '-sINITIAL_MEMORY=33554432' ] + flags )
3409
+ self .btest_exit ('test_sdl2_mixer_wav.c' , args = ['--preload-file' , 'sound.wav' ] + flags )
3410
3410
3411
3411
@no_wasm64 ('SDL2 + wasm64' )
3412
3412
@parameterized ({
@@ -3427,7 +3427,6 @@ def test_sdl2_mixer_music(self, formats, flags, music_name):
3427
3427
'-sUSE_SDL=2' ,
3428
3428
'-sUSE_SDL_MIXER=2' ,
3429
3429
'-sSDL2_MIXER_FORMATS=' + ',' .join (formats ),
3430
- '-sINITIAL_MEMORY=33554432'
3431
3430
])
3432
3431
3433
3432
@requires_graphics_hardware
@@ -3907,12 +3906,12 @@ def test_pthread_in_pthread_pool_size_strict(self):
3907
3906
})
3908
3907
@requires_threads
3909
3908
def test_pthread_atomics (self , args ):
3910
- self .btest_exit ('pthread/test_pthread_atomics.cpp' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' , '-g1' ] + args )
3909
+ self .btest_exit ('pthread/test_pthread_atomics.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' , '-g1' ] + args )
3911
3910
3912
3911
# Test 64-bit atomics.
3913
3912
@requires_threads
3914
3913
def test_pthread_64bit_atomics (self ):
3915
- self .btest_exit ('pthread/test_pthread_64bit_atomics.c' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
3914
+ self .btest_exit ('pthread/test_pthread_64bit_atomics.c' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
3916
3915
3917
3916
# Test 64-bit C++11 atomics.
3918
3917
@parameterized ({
@@ -3963,7 +3962,7 @@ def test_pthread_gcc_atomic_fetch_and_op(self):
3963
3962
for debug in [[], ['-g' ]]:
3964
3963
args = opt + debug
3965
3964
print (args )
3966
- self .btest_exit ('pthread/test_pthread_gcc_atomic_fetch_and_op.cpp' , args = args + ['-sINITIAL_MEMORY=64MB' , '- pthread' , '-sPTHREAD_POOL_SIZE=8' ])
3965
+ self .btest_exit ('pthread/test_pthread_gcc_atomic_fetch_and_op.cpp' , args = args + ['-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
3967
3966
3968
3967
# 64 bit version of the above test.
3969
3968
@also_with_wasm2js
@@ -3972,14 +3971,14 @@ def test_pthread_gcc_64bit_atomic_fetch_and_op(self):
3972
3971
if not self .is_wasm ():
3973
3972
self .skipTest ('https://github.com/WebAssembly/binaryen/issues/4358' )
3974
3973
self .emcc_args += ['-Wno-sync-fetch-and-nand-semantics-changed' ]
3975
- self .btest_exit ('pthread/test_pthread_gcc_64bit_atomic_fetch_and_op.cpp' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
3974
+ self .btest_exit ('pthread/test_pthread_gcc_64bit_atomic_fetch_and_op.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
3976
3975
3977
3976
# Test the old GCC atomic __sync_op_and_fetch builtin operations.
3978
3977
@also_with_wasm2js
3979
3978
@requires_threads
3980
3979
def test_pthread_gcc_atomic_op_and_fetch (self ):
3981
3980
self .emcc_args += ['-Wno-sync-fetch-and-nand-semantics-changed' ]
3982
- self .btest_exit ('pthread/test_pthread_gcc_atomic_op_and_fetch.cpp' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
3981
+ self .btest_exit ('pthread/test_pthread_gcc_atomic_op_and_fetch.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
3983
3982
3984
3983
# 64 bit version of the above test.
3985
3984
@also_with_wasm2js
@@ -3988,28 +3987,28 @@ def test_pthread_gcc_64bit_atomic_op_and_fetch(self):
3988
3987
if not self .is_wasm ():
3989
3988
self .skipTest ('https://github.com/WebAssembly/binaryen/issues/4358' )
3990
3989
self .emcc_args += ['-Wno-sync-fetch-and-nand-semantics-changed' , '--profiling-funcs' ]
3991
- self .btest_exit ('pthread/test_pthread_gcc_64bit_atomic_op_and_fetch.cpp' , args = ['-sINITIAL_MEMORY=64MB' , '- pthread' , '-O2' , '-sPTHREAD_POOL_SIZE=8' ])
3990
+ self .btest_exit ('pthread/test_pthread_gcc_64bit_atomic_op_and_fetch.cpp' , args = ['-pthread' , '-O2' , '-sPTHREAD_POOL_SIZE=8' ])
3992
3991
3993
3992
# Tests the rest of the remaining GCC atomics after the two above tests.
3994
3993
@also_with_wasm2js
3995
3994
@requires_threads
3996
3995
def test_pthread_gcc_atomics (self ):
3997
- self .btest_exit ('pthread/test_pthread_gcc_atomics.cpp' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
3996
+ self .btest_exit ('pthread/test_pthread_gcc_atomics.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
3998
3997
3999
3998
# Test the __sync_lock_test_and_set and __sync_lock_release primitives.
4000
3999
@also_with_wasm2js
4001
4000
@requires_threads
4002
4001
def test_pthread_gcc_spinlock (self ):
4003
4002
for arg in [[], ['-DUSE_EMSCRIPTEN_INTRINSICS' ]]:
4004
- self .btest_exit ('pthread/test_pthread_gcc_spinlock.cpp' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ] + arg )
4003
+ self .btest_exit ('pthread/test_pthread_gcc_spinlock.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ] + arg )
4005
4004
4006
4005
# Test that basic thread creation works.
4007
4006
@requires_threads
4008
4007
def test_pthread_create (self ):
4009
4008
def test (args ):
4010
4009
print (args )
4011
4010
self .btest_exit ('pthread/test_pthread_create.cpp' ,
4012
- args = ['-sINITIAL_MEMORY=64MB' , '- pthread' , '-sPTHREAD_POOL_SIZE=8' ] + args ,
4011
+ args = ['-pthread' , '-sPTHREAD_POOL_SIZE=8' ] + args ,
4013
4012
extra_tries = 0 ) # this should be 100% deterministic
4014
4013
print () # new line
4015
4014
test ([])
@@ -4082,7 +4081,7 @@ def test_pthread_cleanup(self):
4082
4081
'spinlock' : (['-DSPINLOCK_TEST' ],),
4083
4082
})
4084
4083
def test_pthread_mutex (self , args ):
4085
- self .btest_exit ('pthread/test_pthread_mutex.cpp' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ] + args )
4084
+ self .btest_exit ('pthread/test_pthread_mutex.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ] + args )
4086
4085
4087
4086
@requires_threads
4088
4087
def test_pthread_attr_getstack (self ):
@@ -4091,27 +4090,27 @@ def test_pthread_attr_getstack(self):
4091
4090
# Test that memory allocation is thread-safe.
4092
4091
@requires_threads
4093
4092
def test_pthread_malloc (self ):
4094
- self .btest_exit ('pthread/test_pthread_malloc.c' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
4093
+ self .btest_exit ('pthread/test_pthread_malloc.c' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
4095
4094
4096
4095
# Stress test pthreads allocating memory that will call to sbrk(), and main thread has to free up the data.
4097
4096
@requires_threads
4098
4097
def test_pthread_malloc_free (self ):
4099
- self .btest_exit ('pthread/test_pthread_malloc_free.cpp' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' , '-sINITIAL_MEMORY=256MB ' ])
4098
+ self .btest_exit ('pthread/test_pthread_malloc_free.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
4100
4099
4101
4100
# Test that the pthread_barrier API works ok.
4102
4101
@requires_threads
4103
4102
def test_pthread_barrier (self ):
4104
- self .btest_exit ('pthread/test_pthread_barrier.cpp' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
4103
+ self .btest_exit ('pthread/test_pthread_barrier.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
4105
4104
4106
4105
# Test the pthread_once() function.
4107
4106
@requires_threads
4108
4107
def test_pthread_once (self ):
4109
- self .btest_exit ('pthread/test_pthread_once.c' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
4108
+ self .btest_exit ('pthread/test_pthread_once.c' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
4110
4109
4111
4110
# Test against a certain thread exit time handling bug by spawning tons of threads.
4112
4111
@requires_threads
4113
4112
def test_pthread_spawns (self ):
4114
- self .btest_exit ('pthread/test_pthread_spawns.cpp' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' , '--closure=1' , '-sENVIRONMENT=web,worker' ])
4113
+ self .btest_exit ('pthread/test_pthread_spawns.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' , '--closure=1' , '-sENVIRONMENT=web,worker' ])
4115
4114
4116
4115
# It is common for code to flip volatile global vars for thread control. This is a bit lax, but nevertheless, test whether that
4117
4116
# kind of scheme will work with Emscripten as well.
@@ -4126,12 +4125,12 @@ def test_pthread_volatile(self, args):
4126
4125
# Test thread-specific data (TLS).
4127
4126
@requires_threads
4128
4127
def test_pthread_thread_local_storage (self ):
4129
- self .btest_exit ('pthread/test_pthread_thread_local_storage.cpp' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' , '-sASSERTIONS' ])
4128
+ self .btest_exit ('pthread/test_pthread_thread_local_storage.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' , '-sASSERTIONS' ])
4130
4129
4131
4130
# Test the pthread condition variable creation and waiting.
4132
4131
@requires_threads
4133
4132
def test_pthread_condition_variable (self ):
4134
- self .btest_exit ('pthread/test_pthread_condition_variable.cpp' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
4133
+ self .btest_exit ('pthread/test_pthread_condition_variable.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
4135
4134
4136
4135
# Test that pthreads are able to do printf.
4137
4136
@parameterized ({
@@ -4140,12 +4139,12 @@ def test_pthread_condition_variable(self):
4140
4139
})
4141
4140
@requires_threads
4142
4141
def test_pthread_printf (self , debug ):
4143
- self .btest_exit ('pthread/test_pthread_printf.cpp' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE' , '-sLIBRARY_DEBUG=%d' % debug ])
4142
+ self .btest_exit ('pthread/test_pthread_printf.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE' , '-sLIBRARY_DEBUG=%d' % debug ])
4144
4143
4145
4144
# Test that pthreads are able to do cout. Failed due to https://bugzilla.mozilla.org/show_bug.cgi?id=1154858.
4146
4145
@requires_threads
4147
4146
def test_pthread_iostream (self ):
4148
- self .btest_exit ('pthread/test_pthread_iostream.cpp' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' , '-sPTHREAD_POOL_SIZE' ])
4147
+ self .btest_exit ('pthread/test_pthread_iostream.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE' ])
4149
4148
4150
4149
@requires_threads
4151
4150
def test_pthread_unistd_io_bigint (self ):
@@ -4155,7 +4154,7 @@ def test_pthread_unistd_io_bigint(self):
4155
4154
@also_with_wasm2js
4156
4155
@requires_threads
4157
4156
def test_pthread_setspecific_mainthread (self ):
4158
- self .btest_exit ('pthread/test_pthread_setspecific_mainthread.c' , args = ['-sINITIAL_MEMORY=64MB' , '- O3' , '-pthread' ])
4157
+ self .btest_exit ('pthread/test_pthread_setspecific_mainthread.c' , args = ['-O3' , '-pthread' ])
4159
4158
4160
4159
# Test that pthreads have access to filesystem.
4161
4160
@requires_threads
@@ -4234,7 +4233,7 @@ def test_pthread_proxying_in_futex_wait(self):
4234
4233
def test_pthread_sbrk (self , args ):
4235
4234
# With aborting malloc = 1, test allocating memory in threads
4236
4235
# With aborting malloc = 0, allocate so much memory in threads that some of the allocations fail.
4237
- self .btest_exit ('pthread/test_pthread_sbrk.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' , '-sINITIAL_MEMORY=128MB' ] + args )
4236
+ self .btest_exit ('pthread/test_pthread_sbrk.cpp' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ] + args )
4238
4237
4239
4238
# Test that -sABORTING_MALLOC=0 works in both pthreads and non-pthreads
4240
4239
# builds. (sbrk fails gracefully)
@@ -4320,7 +4319,7 @@ def test_pthread_utf8_funcs(self):
4320
4319
@also_with_wasm2js
4321
4320
@requires_threads
4322
4321
def test_pthread_wake_all (self ):
4323
- self .btest_exit ('pthread/test_futex_wake_all.cpp' , args = ['-O3' , '-pthread' , '-sINITIAL_MEMORY=64MB' ])
4322
+ self .btest_exit ('pthread/test_futex_wake_all.cpp' , args = ['-O3' , '-pthread' ])
4324
4323
4325
4324
# Test that stack base and max correctly bound the stack on pthreads.
4326
4325
@requires_threads
@@ -4352,7 +4351,7 @@ def test_pthread_safe_stack(self):
4352
4351
@requires_threads
4353
4352
@no_firefox ('https://github.com/emscripten-core/emscripten/issues/15978' )
4354
4353
def test_pthread_lsan (self , name , args ):
4355
- self .btest (Path ('pthread' , name + '.cpp' ), expected = '1' , args = ['-fsanitize=leak' , '-sINITIAL_MEMORY=256MB' , '- pthread' , '-sPROXY_TO_PTHREAD' , '--pre-js' , test_file ('pthread' , name + '.js' )] + args )
4354
+ self .btest (Path ('pthread' , name + '.cpp' ), expected = '1' , args = ['-fsanitize=leak' , '-pthread' , '-sPROXY_TO_PTHREAD' , '--pre-js' , test_file ('pthread' , name + '.js' )] + args )
4356
4355
4357
4356
@no_wasm64 ('TODO: ASAN in memory64' )
4358
4357
@parameterized ({
@@ -4362,12 +4361,12 @@ def test_pthread_lsan(self, name, args):
4362
4361
})
4363
4362
@requires_threads
4364
4363
def test_pthread_asan (self , name , args ):
4365
- self .btest (Path ('pthread' , name + '.cpp' ), expected = '1' , args = ['-fsanitize=address' , '-sINITIAL_MEMORY=256MB' , '- pthread' , '-sPROXY_TO_PTHREAD' , '--pre-js' , test_file ('pthread' , name + '.js' )] + args )
4364
+ self .btest (Path ('pthread' , name + '.cpp' ), expected = '1' , args = ['-fsanitize=address' , '-pthread' , '-sPROXY_TO_PTHREAD' , '--pre-js' , test_file ('pthread' , name + '.js' )] + args )
4366
4365
4367
4366
@no_wasm64 ('TODO: ASAN in memory64' )
4368
4367
@requires_threads
4369
4368
def test_pthread_asan_use_after_free (self ):
4370
- self .btest ('pthread/test_pthread_asan_use_after_free.cpp' , expected = '1' , args = ['-fsanitize=address' , '-sINITIAL_MEMORY=256MB' , '- pthread' , '-sPROXY_TO_PTHREAD' , '--pre-js' , test_file ('pthread/test_pthread_asan_use_after_free.js' )])
4369
+ self .btest ('pthread/test_pthread_asan_use_after_free.cpp' , expected = '1' , args = ['-fsanitize=address' , '-pthread' , '-sPROXY_TO_PTHREAD' , '--pre-js' , test_file ('pthread/test_pthread_asan_use_after_free.js' )])
4371
4370
4372
4371
@no_wasm64 ('TODO: ASAN in memory64' )
4373
4372
@no_firefox ('https://github.com/emscripten-core/emscripten/issues/20006' )
@@ -4378,7 +4377,7 @@ def test_pthread_asan_use_after_free_2(self):
4378
4377
# of proxy-to-pthread, and also the allocation happens on the pthread
4379
4378
# (which tests that it can use the offset converter to get the stack
4380
4379
# trace there)
4381
- self .btest ('pthread/test_pthread_asan_use_after_free_2.cpp' , expected = '1' , args = ['-fsanitize=address' , '-sINITIAL_MEMORY=256MB' , '- pthread' , '-sPTHREAD_POOL_SIZE=1' , '--pre-js' , test_file ('pthread/test_pthread_asan_use_after_free_2.js' )])
4380
+ self .btest ('pthread/test_pthread_asan_use_after_free_2.cpp' , expected = '1' , args = ['-fsanitize=address' , '-pthread' , '-sPTHREAD_POOL_SIZE=1' , '--pre-js' , test_file ('pthread/test_pthread_asan_use_after_free_2.js' )])
4382
4381
4383
4382
@requires_threads
4384
4383
def test_pthread_exit_process (self ):
@@ -4517,7 +4516,7 @@ def test_async_compile(self, opts, returncode):
4517
4516
# Test that implementing Module.instantiateWasm() callback works.
4518
4517
@parameterized ({
4519
4518
'' : ([],),
4520
- 'asan' : (['-fsanitize=address' , '-sINITIAL_MEMORY=128MB' ],)
4519
+ 'asan' : (['-fsanitize=address' ],)
4521
4520
})
4522
4521
def test_manual_wasm_instantiate (self , args ):
4523
4522
if self .is_wasm64 () and args :
@@ -4862,8 +4861,7 @@ def test_fetch_stream_file(self):
4862
4861
with open ('largefile.txt' , 'w' ) as f :
4863
4862
for _ in range (1024 ):
4864
4863
f .write (s )
4865
- self .btest_exit ('fetch/test_fetch_stream_file.cpp' ,
4866
- args = ['-sFETCH_DEBUG' , '-sFETCH' , '-sINITIAL_MEMORY=536870912' ])
4864
+ self .btest_exit ('fetch/test_fetch_stream_file.cpp' , args = ['-sFETCH_DEBUG' , '-sFETCH' ])
4867
4865
4868
4866
def test_fetch_headers_received (self ):
4869
4867
create_file ('myfile.dat' , 'hello world\n ' )
@@ -5112,7 +5110,7 @@ def test_single_file_worker_js(self):
5112
5110
@requires_threads
5113
5111
def test_pthreads_started_in_worker (self ):
5114
5112
self .set_setting ('EXIT_RUNTIME' )
5115
- self .compile_btest ('pthread/test_pthread_atomics.cpp' , ['-o' , 'test.js' , '-sINITIAL_MEMORY=64MB' , '- pthread' , '-sPTHREAD_POOL_SIZE=8' ], reporting = Reporting .JS_ONLY )
5113
+ self .compile_btest ('pthread/test_pthread_atomics.cpp' , ['-o' , 'test.js' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ], reporting = Reporting .JS_ONLY )
5116
5114
create_file ('test.html' , '''
5117
5115
<script>
5118
5116
new Worker('test.js');
@@ -5607,7 +5605,7 @@ def test_dlmalloc_3gb(self):
5607
5605
# will require bumping this
5608
5606
'main_thread' : (['-sPTHREAD_POOL_SIZE=5' ],),
5609
5607
# using proxy_to_pthread also works, of course
5610
- 'proxy_to_pthread' : (['-sPROXY_TO_PTHREAD' , '-sINITIAL_MEMORY=32MB' , '- DPROXYING' ],),
5608
+ 'proxy_to_pthread' : (['-sPROXY_TO_PTHREAD' , '-DPROXYING' ],),
5611
5609
# using BigInt support affects the ABI, and should not break things. (this
5612
5610
# could be tested on either thread; do the main thread for simplicity)
5613
5611
'bigint' : (['-sPTHREAD_POOL_SIZE=5' , '-sWASM_BIGINT' ],),
@@ -5622,7 +5620,7 @@ def test_wasmfs_fetch_backend(self, args):
5622
5620
create_file ('subdir/backendfile' , 'file 1' )
5623
5621
create_file ('subdir/backendfile2' , 'file 2' )
5624
5622
self .btest_exit ('wasmfs/wasmfs_fetch.c' ,
5625
- args = ['-sWASMFS' , '-pthread' , '-sPROXY_TO_PTHREAD' , '-sINITIAL_MEMORY=32MB' ,
5623
+ args = ['-sWASMFS' , '-pthread' , '-sPROXY_TO_PTHREAD' ,
5626
5624
'--js-library' , test_file ('wasmfs/wasmfs_fetch.js' )] + args )
5627
5625
5628
5626
@no_firefox ('no OPFS support yet' )
0 commit comments