summaryrefslogtreecommitdiff
path: root/test/ruby/test_variable.rb
diff options
context:
space:
mode:
authorYuta Saito <kateinoigakukun@gmail.com>2023-11-22 16:08:53 +0000
committerYuta Saito <kateinoigakukun@gmail.com>2023-11-23 02:15:42 +0900
commit0e59d91eeddcff4a28add1ce7796ee9cd9ae9e10 (patch)
treeca31c2fb81d8c762580641f9d66d7f9c4f9b5a9b /test/ruby/test_variable.rb
parentc1fc1a00ea9633961153451d0e927db49c1b268d (diff)
[wasm] Avoid malloc during longjmp
`longjmp` can be called to raise `NoMemoryError` or to trigger GC when `malloc` fails to allocate memory in `ruby_xmalloc` family. In such case, `malloc` call in `longjmp` will fail again, and Asyncify unwinding operation corrupts the memory space by using the failed pointer as Asyncify buffer. This commit uses statically allocated buffer to avoid such situation.
Diffstat (limited to 'test/ruby/test_variable.rb')
0 files changed, 0 insertions, 0 deletions