@@ -1489,12 +1489,12 @@ static void update_max_args(jl_methtable_t *mt, jl_value_t *type)
1489
1489
mt -> max_args = na ;
1490
1490
}
1491
1491
1492
- int JL_DEBUG_METHOD_INVALIDATION = 0 ;
1492
+ JL_DLLEXPORT int jl_debug_method_invalidation = 0 ;
1493
1493
1494
1494
// recursively invalidate cached methods that had an edge to a replaced method
1495
1495
static void invalidate_method_instance (jl_method_instance_t * replaced , size_t max_world , int depth )
1496
1496
{
1497
- if (JL_DEBUG_METHOD_INVALIDATION ) {
1497
+ if (jl_debug_method_invalidation ) {
1498
1498
int d0 = depth ;
1499
1499
while (d0 -- > 0 )
1500
1500
jl_uv_puts (JL_STDOUT , " " , 1 );
@@ -1626,8 +1626,8 @@ static int invalidate_mt_cache(jl_typemap_entry_t *oldentry, void *closure0)
1626
1626
}
1627
1627
}
1628
1628
if (intersects ) {
1629
- if (JL_DEBUG_METHOD_INVALIDATION ) {
1630
- jl_uv_puts (JL_STDOUT , "-- " , 4 );
1629
+ if (jl_debug_method_invalidation ) {
1630
+ jl_uv_puts (JL_STDOUT , "-- " , 3 );
1631
1631
jl_static_show (JL_STDOUT , (jl_value_t * )mi );
1632
1632
jl_uv_puts (JL_STDOUT , "\n" , 1 );
1633
1633
}
@@ -1776,7 +1776,7 @@ JL_DLLEXPORT void jl_method_table_insert(jl_methtable_t *mt, jl_method_t *method
1776
1776
}
1777
1777
}
1778
1778
}
1779
- if (invalidated && JL_DEBUG_METHOD_INVALIDATION ) {
1779
+ if (invalidated && jl_debug_method_invalidation ) {
1780
1780
jl_uv_puts (JL_STDOUT , ">> " , 3 );
1781
1781
jl_static_show (JL_STDOUT , (jl_value_t * )method );
1782
1782
jl_uv_puts (JL_STDOUT , " " , 1 );
0 commit comments