Skip to content

Commit

Permalink
feat: move GC_THREADS macro to process header
Browse files Browse the repository at this point in the history
  • Loading branch information
aboeglin committed May 16, 2024
1 parent b874819 commit 28d78c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions runtime/src/process.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#ifndef GC_THREADS
#define GC_THREADS
#endif
#include "uv.h"
#include "process.hpp"
#include <sys/mman.h>
Expand Down Expand Up @@ -46,6 +43,7 @@ static char **ARGV = NULL;


void __main__init__(int argc, char **argv) {
// GC_use_threads_discovery();
GC_set_dont_precollect(1);

// TODO: make min alloc and initial heap size available as compilation options
Expand Down
3 changes: 3 additions & 0 deletions runtime/src/process.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#ifndef PROCESS_H
#define PROCESS_H
#ifndef GC_THREADS
#define GC_THREADS
#endif

#include <gc.h>
#include <uv.h>
Expand Down

0 comments on commit 28d78c3

Please # to comment.