[ https://issues.apache.org/jira/browse/ARROW-6977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16958212#comment-16958212 ]
Neal Richardson commented on ARROW-6977: ---------------------------------------- I'm not sure, but it sounds like the kind of thing we'll hear bug reports about if we don't. For the CRAN R packages, it's not an issue because the macOS and Windows binaries are built with jemalloc disabled: * https://github.com/apache/arrow/blob/59a6788c76330cf055bdbcbc7bdae7b0106c6656/dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb#L47 * https://github.com/apache/arrow/blob/59a6788c76330cf055bdbcbc7bdae7b0106c6656/ci/PKGBUILD#L85 > [C++] Only enable jemalloc background_thread if feature is supported > -------------------------------------------------------------------- > > Key: ARROW-6977 > URL: https://issues.apache.org/jira/browse/ARROW-6977 > Project: Apache Arrow > Issue Type: Bug > Components: C++ > Environment: macOS 10.14, Homebrew > Reporter: Neal Richardson > Priority: Major > Fix For: 1.0.0 > > > Followup to ARROW-6910. When loading the R package after that patch merged, I > get this new message: > {code} > $ R > > library(arrow) > <jemalloc>: option background_thread currently supports pthread only > {code} > https://github.com/jemalloc/jemalloc/blob/3d84bd57f4954a17059bd31330ec87d3c1876411/src/background_thread.c#L884-L887 > is where the message comes from. Tracing that further, > {{have_background_thread}} comes from > https://github.com/jemalloc/jemalloc/blob/21cfe59ff7b10a61dabe26cd3dbfb7a255e1f5e8/include/jemalloc/internal/jemalloc_preamble.h.in#L205-L211, > which gets set in {{configure.ac}} here: > https://github.com/jemalloc/jemalloc/blob/d2dddfb82aac9f2212922eb90324e84790704bfe/configure.ac#L2155-L2157 > In sum, on my system, that flag doesn't get set, so > {{have_background_thread}} is false, and when that is false and the > {{background_thread}} option is true, I get that message printed. And I do > not want to see that message. > cc [~wesm] -- This message was sent by Atlassian Jira (v8.3.4#803005)