File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ typedef uint64_t uintnat;
220
220
/* Default speed setting for the major GC. The heap will grow until
221
221
the dead objects and the free list represent this percentage of the
222
222
total size of live objects. */
223
- #define Percent_free_def 80
223
+ #define Percent_free_def 100
224
224
225
225
/* Default setting for the compacter: 500%
226
226
(i.e. trigger the compacter when 5/6 of the heap is free or garbage)
Original file line number Diff line number Diff line change @@ -1780,20 +1780,20 @@ typedef enum caml_policy_t {
1780
1780
policy_best_fit = 2 ,
1781
1781
} caml_policy_t ;
1782
1782
1783
- uintnat caml_allocation_policy = policy_next_fit ;
1783
+ uintnat caml_allocation_policy = policy_best_fit ;
1784
1784
1785
1785
/* These pointers are changed when switching between allocation
1786
1786
policies. */
1787
- static header_t * (* p_allocate ) (mlsize_t wo_sz ) = & nf_allocate ;
1788
- static void (* p_init_merge ) (void ) = & nf_init_merge ;
1789
- static void (* p_reset ) (void ) = & nf_reset ;
1790
- static header_t * (* p_merge_block ) (value bp , char * limit ) = & nf_merge_block ;
1791
- static void (* p_add_blocks ) (value bp ) = & nf_add_blocks ;
1787
+ static header_t * (* p_allocate ) (mlsize_t wo_sz ) = & bf_allocate ;
1788
+ static void (* p_init_merge ) (void ) = & bf_init_merge ;
1789
+ static void (* p_reset ) (void ) = & bf_reset ;
1790
+ static header_t * (* p_merge_block ) (value bp , char * limit ) = & bf_merge_block ;
1791
+ static void (* p_add_blocks ) (value bp ) = & bf_add_blocks ;
1792
1792
static void (* p_make_free_blocks )
1793
1793
(value * p , mlsize_t size , int do_merge , int color )
1794
- = & nf_make_free_blocks ;
1794
+ = & bf_make_free_blocks ;
1795
1795
#ifdef DEBUG
1796
- static void (* p_check ) (void ) = & nf_check ;
1796
+ static void (* p_check ) (void ) = & bf_check ;
1797
1797
#endif
1798
1798
1799
1799
/********************* exported functions *****************************/
You can’t perform that action at this time.
0 commit comments