@@ -1754,7 +1754,7 @@ enum {
1754
1754
policy_best_fit = 2 ,
1755
1755
};
1756
1756
1757
- uintnat caml_allocation_policy = policy_next_fit ;
1757
+ uintnat caml_allocation_policy = policy_best_fit ;
1758
1758
1759
1759
/********************* exported functions *****************************/
1760
1760
@@ -1763,25 +1763,25 @@ uintnat caml_allocation_policy = policy_next_fit;
1763
1763
[caml_fl_allocate] returns a head pointer, or NULL if no suitable block
1764
1764
is found in the free set.
1765
1765
*/
1766
- header_t * (* caml_fl_p_allocate ) (mlsize_t wo_sz ) = & nf_allocate ;
1766
+ header_t * (* caml_fl_p_allocate ) (mlsize_t wo_sz ) = & bf_allocate ;
1767
1767
1768
1768
/* Initialize the merge_block machinery (at start of sweeping). */
1769
- void (* caml_fl_p_init_merge ) (void ) = & nf_init_merge ;
1769
+ void (* caml_fl_p_init_merge ) (void ) = & bf_init_merge ;
1770
1770
1771
1771
/* These are called internally. */
1772
- static void (* caml_fl_p_init ) (void ) = & nf_init ;
1773
- static void (* caml_fl_p_reset ) (void ) = & nf_reset ;
1772
+ static void (* caml_fl_p_init ) (void ) = & bf_init ;
1773
+ static void (* caml_fl_p_reset ) (void ) = & bf_reset ;
1774
1774
1775
1775
/* [caml_fl_merge_block] returns the head pointer of the next block after [bp],
1776
1776
because merging blocks may change the size of [bp]. */
1777
- header_t * (* caml_fl_p_merge_block ) (value bp , char * limit ) = & nf_merge_block ;
1777
+ header_t * (* caml_fl_p_merge_block ) (value bp , char * limit ) = & bf_merge_block ;
1778
1778
1779
1779
/* [bp] must point to a list of blocks of wosize >= 1 chained by their field 0,
1780
1780
terminated by Val_NULL, and field 1 of the first block must point to
1781
1781
the last block.
1782
1782
The blocks must be blue.
1783
1783
*/
1784
- void (* caml_fl_p_add_blocks ) (value bp ) = & nf_add_blocks ;
1784
+ void (* caml_fl_p_add_blocks ) (value bp ) = & bf_add_blocks ;
1785
1785
1786
1786
/* Cut a block of memory into pieces of size [Max_wosize], give them headers,
1787
1787
and optionally merge them into the free list.
@@ -1795,9 +1795,9 @@ void (*caml_fl_p_add_blocks) (value bp) = &nf_add_blocks;
1795
1795
*/
1796
1796
void (* caml_fl_p_make_free_blocks )
1797
1797
(value * p , mlsize_t size , int do_merge , int color )
1798
- = & nf_make_free_blocks ;
1798
+ = & bf_make_free_blocks ;
1799
1799
#ifdef DEBUG
1800
- void (* caml_fl_p_check ) (void ) = & nf_check ;
1800
+ void (* caml_fl_p_check ) (void ) = & bf_check ;
1801
1801
#endif
1802
1802
1803
1803
void caml_set_allocation_policy (intnat p )
0 commit comments