1
+ use crate :: plan:: barriers:: BarrierSelector ;
1
2
use crate :: util:: constants:: * ;
2
3
3
4
/// This struct defines plan-specific constraints.
@@ -10,9 +11,9 @@ pub struct PlanConstraints {
10
11
pub gc_header_words : usize ,
11
12
pub num_specialized_scans : usize ,
12
13
pub max_non_los_copy_bytes : usize ,
13
- pub needs_write_barrier : bool ,
14
14
pub needs_log_bit_in_header : bool ,
15
15
pub needs_log_bit_in_header_num : usize ,
16
+ pub barrier : BarrierSelector ,
16
17
// the following seems unused for now
17
18
pub needs_linear_scan : bool ,
18
19
pub needs_concurrent_workers : bool ,
@@ -28,13 +29,13 @@ impl PlanConstraints {
28
29
gc_header_words : 0 ,
29
30
num_specialized_scans : 0 ,
30
31
max_non_los_copy_bytes : MAX_INT ,
31
- needs_write_barrier : false ,
32
32
needs_log_bit_in_header : false ,
33
33
needs_log_bit_in_header_num : 0 ,
34
34
needs_linear_scan : SUPPORT_CARD_SCANNING || LAZY_SWEEP ,
35
35
needs_concurrent_workers : false ,
36
36
generate_gc_trace : false ,
37
37
needs_forward_after_liveness : false ,
38
+ barrier : BarrierSelector :: NoBarrier ,
38
39
}
39
40
}
40
41
}
0 commit comments