Skip to content

Commit

Permalink
Disable memory cap on macOS (32-bit, PR#18713).
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@86526 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
kalibera committed May 6, 2024
1 parent 9a7318e commit 54dfe76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/startup.c
Expand Up @@ -238,7 +238,8 @@ void R_SizeFromEnv(Rstart Rp)
else
Rp->max_vsize = value;
}
#if defined(__APPLE__) && defined(_SC_PHYS_PAGES) && defined(_SC_PAGE_SIZE)
#if defined(__APPLE__) && defined(_SC_PHYS_PAGES) && defined(_SC_PAGE_SIZE) \
&& (SIZEOF_SIZE_T > 4)
/* For now only on macOS place a default limit on the vector heap
size to avoid having R killed due to memory overcommit.
Setting the limit at the maximum of 16Gb and available physical
Expand Down

0 comments on commit 54dfe76

Please sign in to comment.