Skip to content

Commit

Permalink
Revert GC=none change
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Apr 17, 2024
1 parent b29c87f commit b7ee024
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions nativelib/src/main/resources/scala-native/gc/none/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// process would not use too much resources.
#define DEFAULT_CHUNK_SIZE "64M"
#else
#define DEFAULT_CHUNK_SIZE "2M"
#define DEFAULT_CHUNK_SIZE "4G"
#endif

#if defined(__has_feature)
Expand All @@ -39,14 +39,8 @@ static size_t CHUNK;
static size_t TO_NORMAL_MMAP = 1L;
static size_t DO_PREALLOC = 0L; // No Preallocation.

#ifdef PD_DEBUG
extern void pd_log_error(char *str, ...);
#endif

static void exitWithOutOfMemory() {
#ifdef PD_DEBUG
pd_log_error("Out of heap space\n");
#endif
fprintf(stderr, "Out of heap space\n");
exit(1);
}

Expand Down

0 comments on commit b7ee024

Please sign in to comment.