Binaries built with -Dpreview_mt cause MemProf.pretty_log_allocations to just hang and never complete.
Minimal example for reproduction:
require "perf_tools/mem_prof"
class Foo; end
_ = Array.new(100_000) { Foo.new }
PerfTools::MemProf.pretty_log_allocations(STDOUT)
When built without enabling preview_mt this runs just fine, for both normal (unoptimized) builds as well as --release builds.
However, as soon as -Dpreview_mt is flipped on, this will no longer complete and just get stuck.
I have not the slightest clue as to why that may be, maybe I'm just "holding it wrong"?