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

ARROW-12485: [C++] Use mimalloc as the default memory allocator on macOS #10117

Closed
wants to merge 2 commits into from

Conversation

jonkeane
Copy link
Member

No description provided.

@github-actions
Copy link

@jonkeane
Copy link
Member Author

I'm not sure if SupportedBackends().front() is the right approach here (or if it is if I should combine it all onto the return line)>

@jonkeane
Copy link
Member Author

@github-actions autotune

@jonkeane
Copy link
Member Author

The MacOS build failures are related to https://issues.apache.org/jira/browse/ARROW-12467

and the MinGW are unrelated to this change (and are failing on master)

Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but be sure to test that it selects the right backend on macOS :-)

return MemoryPoolBackend::System;
#endif
struct SupportedBackend default_backend = SupportedBackends().front();
return default_backend.backend;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or simply:

  return SupportedBackends().front().backend;

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, I did test this locally to make sure, and it works like I expected it to: mimalloc is default with no ARROW_DEFAULT_MEMORY_POOL set and also with a ARROW_DEFAULT_MEMORY_POOL set that is not supported / non existent.

Thanks!

@kszucs kszucs closed this in be258f2 Apr 21, 2021
@jonkeane jonkeane deleted the ARROW-12485 branch May 5, 2021 12:55
GeorgeAp pushed a commit to sirensolutions/arrow that referenced this pull request Jun 7, 2021
Closes apache#10117 from jonkeane/ARROW-12485

Authored-by: Jonathan Keane <jkeane@gmail.com>
Signed-off-by: Krisztián Szűcs <szucs.krisztian@gmail.com>
michalursa pushed a commit to michalursa/arrow that referenced this pull request Jun 10, 2021
Closes apache#10117 from jonkeane/ARROW-12485

Authored-by: Jonathan Keane <jkeane@gmail.com>
Signed-off-by: Krisztián Szűcs <szucs.krisztian@gmail.com>
michalursa pushed a commit to michalursa/arrow that referenced this pull request Jun 13, 2021
Closes apache#10117 from jonkeane/ARROW-12485

Authored-by: Jonathan Keane <jkeane@gmail.com>
Signed-off-by: Krisztián Szűcs <szucs.krisztian@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants