Skip to content

Commit

Permalink
[mycpp] Raise heap size temporarily to disable GC.
Browse files Browse the repository at this point in the history
See if the translation still works.
  • Loading branch information
Andy Chu committed Jan 7, 2021
1 parent ccd938e commit f95a61c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mycpp/harness.sh
Expand Up @@ -8,10 +8,9 @@ gen-main() {
cat <<EOF
int main(int argc, char **argv) {
// gc_heap::gHeap.Init(1 << 10); // for debugging
gc_heap::gHeap.Init(512);
// gc_heap::gHeap.Init(512);
// gc_heap::gHeap.Init(128 << 10); // 128 KiB; doubling in size
// gc_heap::gHeap.Init(400 << 20); // 400 MiB to avoid garbage collection
gc_heap::gHeap.Init(400 << 20); // 400 MiB to avoid garbage collection
if (getenv("BENCHMARK")) {
fprintf(stderr, "Benchmarking...\n");
Expand Down

0 comments on commit f95a61c

Please sign in to comment.