Skip to content

Commit

Permalink
run-time: Correct MVFF pool creation usage
Browse files Browse the repository at this point in the history
* sources/lib/run-time/collector.c (MISCMAXSIZE): Remove.

* sources/lib/run-time/mps-collector.c
  (dylan_init_memory_manager): Pass arguments required by the
   MVFF pool class to mps_pool_create.
  • Loading branch information
housel committed Jun 18, 2023
1 parent 6aaa725 commit 8ae2597
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion sources/lib/run-time/collector.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ typedef intptr_t DSINT;

#define MISCEXTENDBY ((size_t)16384)
#define MISCAVGSIZE ((size_t)32)
#define MISCMAXSIZE ((size_t)65536)

static void report_runtime_error (char* header, char* message);

Expand Down
4 changes: 3 additions & 1 deletion sources/lib/run-time/mps-collector.c
Original file line number Diff line number Diff line change
Expand Up @@ -1574,7 +1574,9 @@ MMError dylan_init_memory_manager(void)
/* Create the MVFF pool for miscellaneous objects. */
/* This is also used for wrappers. */
res = mps_pool_create(&misc_pool, arena, mps_class_mvff(),
MISCEXTENDBY, MISCAVGSIZE, MISCMAXSIZE);
MISCEXTENDBY, MISCAVGSIZE,
(size_t) 16,
TRUE, TRUE, TRUE);
if (res) { init_error("create misc pool"); return(res); }

wrapper_pool = misc_pool;
Expand Down

0 comments on commit 8ae2597

Please sign in to comment.