-
-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
as crash when try to alloc large data #2827
Labels
Comments
It looks like most of the time is spent in the |
Hm, I can only guess that it has something to do with the copy here, since binaryen.js's memory might hit the 4 GiB limit there. |
CountBleck
added a commit
to CountBleck/assemblyscript
that referenced
this issue
Mar 25, 2024
Instead of allocating a MemorySegment, the code now simply bumps the Compiler's memoryOffset. Fixes AssemblyScript#2827.
2 tasks
CountBleck
added a commit
to CountBleck/assemblyscript
that referenced
this issue
Mar 25, 2024
MemorySegments can now hold null buffers, which signifies that memory is in fact used in the compiled program, for programs that only reserve zero-filled memories. Using null buffers avoids passing zero-filled buffers to Binaryen, which isn't necessary since Wasm memories are initialized with zeroes when a (data ...) segment isn't present. Fixes AssemblyScript#2827.
CountBleck
added a commit
to CountBleck/assemblyscript
that referenced
this issue
Apr 3, 2024
MemorySegments can now hold null buffers, which signifies that memory is in fact used in the compiled program, for programs that only reserve zero-filled memories. Using null buffers avoids passing zero-filled buffers to Binaryen, which isn't necessary since Wasm memories are initialized with zeroes when a (data ...) segment isn't present. Fixes AssemblyScript#2827.
CountBleck
added a commit
to CountBleck/assemblyscript
that referenced
this issue
Apr 3, 2024
MemorySegments can now hold null buffers, which signifies that memory is in fact used in the compiled program, for programs that only reserve zero-filled memories. Using null buffers avoids passing zero-filled buffers to Binaryen, which isn't necessary since Wasm memories are initialized with zeroes when a (data ...) segment isn't present. This change is breaking in that modules using imported memories that contain non-zero values in such memory ranges at the time of instantiation will retain those values, as opposed to being filled. Fixes AssemblyScript#2827.
CountBleck
added a commit
to CountBleck/assemblyscript
that referenced
this issue
Apr 3, 2024
MemorySegments can now hold null buffers, which signifies that memory is in fact used in the compiled program, for programs that only reserve zero-filled memories. Using null buffers avoids passing zero-filled buffers to Binaryen, which isn't necessary since Wasm memories are initialized with zeroes when a (data ...) segment isn't present. This change is breaking in that modules using imported memories that contain non-zero values in such memory ranges at the time of instantiation will retain those values, as opposed to being filled. This shouldn't affect most users, however. Fixes AssemblyScript#2827.
CountBleck
added a commit
to CountBleck/assemblyscript
that referenced
this issue
Apr 3, 2024
MemorySegments can now hold null buffers, which signifies that memory is in fact used in the compiled program, for programs that only reserve zero-filled memories. Using null buffers avoids passing zero-filled buffers to Binaryen, which isn't necessary since Wasm memories are initialized with zeroes when a (data ...) segment isn't present. This change is breaking in that modules using imported memories that contain non-zero values in such memory ranges at the time of instantiation will retain those values, as opposed to being filled. This shouldn't affect most users, however, and it could possibly be desirable. Fixes AssemblyScript#2827.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
AS compiler crash after hang up a few second.
Steps to reproduce
npm run asbuild:debug
AssemblyScript version
v0.27.x
The text was updated successfully, but these errors were encountered: