Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyarrow.jemalloc_set_decay_ms(): Ignore if jemalloc not present #37

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

daverigby
Copy link
Collaborator

Problem

jemalloc support is not always present in pyarrow distributions - for
example pyarrow-v11 on macOS doesn't have it. Attempting to call
jemalloc_set_decay_ms() raises an exception if support is not present.

Solution

Ignore any NotImplementedError exception raised by jemalloc_set_decay_ms().

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Test Plan

Tested on macOS system where pyarrow does not have jemalloc support.

jemalloc support is not always present in pyarrow distributions - for
example pyarrow-v11 on macOS doesn't have it. As such, don't error if
jemalloc_set_decay_ms() raises NotImplementedError.
@daverigby daverigby merged commit 7a78045 into main Feb 28, 2024
7 checks passed
@daverigby daverigby deleted the jemalloc_optional branch February 28, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant