Skip to content

Commit 9f8bddd

Browse files
authored
fix: fix web shell OOM issue (#775)
1 parent 70ec55c commit 9f8bddd

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ endif()
1818
if(EMSCRIPTEN)
1919
add_compile_options(-fexceptions)
2020
add_link_options(-fexceptions)
21+
22+
# Memory configuration
23+
add_compile_options(-sALLOW_MEMORY_GROWTH=1)
24+
add_compile_options(-sMAXIMUM_MEMORY=64MB)
25+
add_link_options(-sALLOW_MEMORY_GROWTH=1)
26+
add_link_options(-sMAXIMUM_MEMORY=64MB)
2127
endif()
2228

2329
# People keep running CMake in the wrong folder, completely nuking their project or creating weird bugs.

tools/wasm-shell/extra_files/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
<meta name="twitter:site" content="@CMUDB">
3131
<meta name="twitter:creator" content="@CMUDB">
3232
<meta name="twitter:domain" content=".">
33-
<meta property="twitter:label1" content="Semester?" />
34-
<meta property="twitter:data1" content="Fall 2022" />
35-
<meta property="twitter:label1" content="Relational?" />
36-
<meta property="twitter:data1" content="Hell Yes" />
33+
<meta property="twitter:label1" content="Semester" />
34+
<meta property="twitter:data1" content="Fall 2024" />
35+
<meta property="twitter:label1" content="SQL Database?" />
36+
<meta property="twitter:data1" content="You Know It!" />
3737
</head>
3838

3939
<body>

0 commit comments

Comments
 (0)