Project

General

Profile

Actions

Feature #20274

closed

Add RubyVM::ASAN.enabled?

Added by kjtsanaktsidis (KJ Tsanaktsidis) 9 months ago. Updated 9 months ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:116815]

Description

Some parts of the Ruby test suite won't work correctly under ASAN. In particular, assert_no_memory_leak will need different parameters for ASAN (or be skipped, in the same way as for MJIT/RJIT).

I propose that we add a module RubyVM::ASAN (which will be unconditionally defined), and RubyVM::ASAN.enabled? (which will return true if Ruby was compiled with ASAN, or false otherwise).

This means we can check if ASAN is enabled by running defined?(RubyVM::ASAN) && RubyVM::ASAN.enabled?, in the same way that the mjit/rjit check is performed.


Related issues 1 (1 open0 closed)

Related to Ruby master - Misc #20387: Meta-ticket for ASAN supportAssignedkjtsanaktsidis (KJ Tsanaktsidis)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0