Skip to content

Commit

Permalink
tests: add header text to crash_with_gc.vv
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Jun 15, 2024
1 parent 2a475ad commit 1faa0c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/crash_with_gc.vv
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// This file serves as a MRE (minimal reproducible example) of a runtime crash triggered by compiling and running
// this file with just `v run ~/.vmodules/sdl/tests/crash_with_gc.vv`. On some setups, the problem seems to be
// memory corruption happening between actions in SDL2's memory allocations and V's default garbage collector.
// Especially when a lot of heap allocations occur.
//
// The example does not crash if compiled with `-d sdl_memory_no_gc`.
// See also: https://github.com/vlang/sdl/issues/744
module main

import sdl
Expand Down

0 comments on commit 1faa0c9

Please sign in to comment.