Skip to content

Commit

Permalink
Reduce the max heap size for 32 bit even more.
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi committed Jun 15, 2023
1 parent 5267b54 commit d001bad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,11 +676,10 @@ static memsize_t max_total_memory = (memsize_t) 2 * 1024 * 1024 * 1024 * 1024 *
#else
typedef uint32_t memsize_t;
static const size_t default_collect_interval = 3200 * 1024 * sizeof(void*);
static const size_t max_collect_interval = 500000000UL;
// Work really hard to stay within 2GB
// Alternative is to risk running out of address space
// on 32 bit architectures.
static memsize_t max_total_memory = (memsize_t) 2 * 1024 * 1024 * 768; // The new heuristics use all the heap, which makes it run out
static memsize_t max_total_memory = (memsize_t) 1024 * 1024 * 1024; // The new heuristics use all the heap, which makes it run out
#endif

// global variables for GC stats
Expand Down

0 comments on commit d001bad

Please sign in to comment.