Skip to content

MemProf.pretty_log_allocations hangs indefinitely when used with -Dpreview_mt #31

@foxxx0

Description

@foxxx0

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"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions