Skip to content
Browse files

parenthesized macro values for safety

  • Loading branch information...
1 parent 2a71336 commit 505e56eee04c60eb2aa0cd7bf398c97858819816 @petdance petdance committed Sep 27, 2011
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/gc/gc_private.h
View
16 src/gc/gc_private.h
@@ -1,5 +1,5 @@
/*
-Copyright (C) 2001-2010, Parrot Foundation.
+Copyright (C) 2001-2011, Parrot Foundation.
=head1 NAME
@@ -44,18 +44,18 @@ extern void *flush_reg_store(void);
/* this factor is totally arbitrary, but gives good timings for stress.pasm */
#define UNITS_PER_ALLOC_GROWTH_FACTOR 1.75
-#define POOL_MAX_BYTES 65536 * 128
-#define GC_SIZE_THRESHOLD 1024 * 1024
+#define POOL_MAX_BYTES (65536 * 128)
+#define GC_SIZE_THRESHOLD (1024 * 1024)
#define GC_DEFAULT_DYNAMIC_THRESHOLD 75
-#define GC_DEFAULT_MIN_THRESHOLD 4 * 1024 * 1024
+#define GC_DEFAULT_MIN_THRESHOLD (4 * 1024 * 1024)
/* promills of system memory */
#define GC_DEFAULT_NURSERY_SIZE 2
-#define PMC_HEADERS_PER_ALLOC 4096 * 10 / sizeof (PMC)
-#define BUFFER_HEADERS_PER_ALLOC 4096 / sizeof (Buffer)
-#define STRING_HEADERS_PER_ALLOC 4096 * 20 / sizeof (STRING)
+#define PMC_HEADERS_PER_ALLOC (4096 * 10 / sizeof (PMC))
+#define BUFFER_HEADERS_PER_ALLOC (4096 / sizeof (Buffer))
+#define STRING_HEADERS_PER_ALLOC (4096 * 20 / sizeof (STRING))
-#define CONSTANT_PMC_HEADERS_PER_ALLOC 4096 / sizeof (PMC)
+#define CONSTANT_PMC_HEADERS_PER_ALLOC (4096 / sizeof (PMC))
#define GET_SIZED_POOL_IDX(x) ((x) / sizeof (void *))
#define GC_NUM_INITIAL_FIXED_SIZE_POOLS 128

0 comments on commit 505e56e

Please sign in to comment.
Something went wrong with that request. Please try again.