Skip to content

Allow suppression of unsupported warnings #2816

Open

Description

@orlp

I'm using jemalloc in rust through https://crates.io/crates/tikv-jemallocator, and I can't seem to find a way to suppress the "invalid conf value" warning that's emitted through stderr. I'm interested in enabling thp:always,background_thread:true, and if the platform the binary is deployed upon doesn't support them, I don't care.

I'd thus like a way to silence these warnings:

<jemalloc>: No THP support: thp:always
<jemalloc>: option background_thread currently supports pthread only

Unfortunately I can't seem to set malloc_message to do the filtering myself, because by the time any code runs that would let me set malloc_message, it is already too late.

Activity

  1. changed the title [-]Allow suppression of "invalid conf value" warning[/-] [+]Allow suppression of unsupported warning[/+] on Mar 17, 2025
  2. changed the title [-]Allow suppression of unsupported warning[/-] [+]Allow suppression of unsupported warnings[/+] on Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions