Skip to content

Disable setting rlimit by default on Darwin#441

Merged
qnikst merged 3 commits intomasterfrom
rlimit
Jan 28, 2026
Merged

Disable setting rlimit by default on Darwin#441
qnikst merged 3 commits intomasterfrom
rlimit

Conversation

@qnikst
Copy link
Collaborator

@qnikst qnikst commented Jan 27, 2026

No description provided.

@qnikst qnikst requested a review from Copilot January 27, 2026 22:53
@qnikst qnikst self-assigned this Jan 27, 2026
@qnikst qnikst marked this pull request as draft January 27, 2026 22:53
@qnikst qnikst linked an issue Jan 27, 2026 that may be closed by this pull request
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR disables automatic stack size limit setting during R initialization and makes it opt-in via the H_INCREASE_STACK_SIZE environment variable. This is a breaking change that requires users who depend on the automatic stack limit increase to explicitly enable it.

Changes:

  • Refactored stack limit setting into a separate setLimit function with platform-specific implementations
  • Made stack limit setting conditional on the presence of H_INCREASE_STACK_SIZE environment variable
  • Changed macOS behavior to only print a warning message instead of attempting to set the limit

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
inline-r/src/Language/R/Instance.hs Refactored stack limit setting logic to be opt-in via environment variable, with platform-specific implementations for macOS, FreeBSD, Linux, and other systems
inline-r/CHANGELOG.md Documents the breaking change for disabling automatic stack limit setting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

qnikst and others added 2 commits January 28, 2026 00:54
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@qnikst qnikst marked this pull request as ready for review January 27, 2026 23:54
@qnikst qnikst changed the title Disable setting rlimit by default Disable setting rlimit by default on Darwin Jan 28, 2026
@qnikst qnikst merged commit f21ee72 into master Jan 28, 2026
8 checks passed
@qnikst qnikst deleted the rlimit branch January 28, 2026 16:44
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.

inline-r fails to run on Mac M1 / M2

1 participant