summaryrefslogtreecommitdiff
path: root/byterun/gc_ctrl.c
diff options
context:
space:
mode:
authorLuc Maranget <luc.maranget@inria.fr>2010-01-25 14:52:00 +0000
committerLuc Maranget <luc.maranget@inria.fr>2010-01-25 14:52:00 +0000
commite7ada9b93a02d39cd62f6fd7d9f629429ef51273 (patch)
tree0d5771c12e6ab43afb23e5976c1ab35686a66b30 /byterun/gc_ctrl.c
parent924e832b687e914f4173bb52ec39806b1b6192a8 (diff)
downloadocaml-jo311.tar.gz
Preparing relase 3.11.2jo311
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/jo311@9590 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/gc_ctrl.c')
-rw-r--r--byterun/gc_ctrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/byterun/gc_ctrl.c b/byterun/gc_ctrl.c
index ec9c82ab12..0083f36734 100644
--- a/byterun/gc_ctrl.c
+++ b/byterun/gc_ctrl.c
@@ -41,7 +41,7 @@ intnat caml_stat_minor_collections = 0,
caml_stat_compactions = 0,
caml_stat_heap_chunks = 0;
-extern asize_t caml_major_heap_increment; /* bytes; see major_gc.c */
+extern uintnat caml_major_heap_increment; /* bytes; see major_gc.c */
extern uintnat caml_percent_free; /* see major_gc.c */
extern uintnat caml_percent_max; /* see compact.c */
extern uintnat caml_allocation_policy; /* see freelist.c */
@@ -419,7 +419,7 @@ static void test_and_compact (void)
fp = 100.0 * caml_fl_cur_size
/ (Wsize_bsize (caml_stat_heap_size) - caml_fl_cur_size);
- if (fp > 1000000.0) fp = 1000000.0;
+ if (fp > 999999.0) fp = 999999.0;
caml_gc_message (0x200, "Estimated overhead (lower bound) = %"
ARCH_INTNAT_PRINTF_FORMAT "u%%\n",
(uintnat) fp);