@@ -55,9 +55,9 @@ use crate::sync::list::{Entry, IsElement, IterError, List};
5555use crate :: sync:: queue:: Queue ;
5656
5757/// Maximum number of objects a bag can contain.
58- #[ cfg( not( feature = "sanitize" ) ) ]
58+ #[ cfg( not( crossbeam_sanitize ) ) ]
5959const MAX_OBJECTS : usize = 62 ;
60- #[ cfg( feature = "sanitize" ) ]
60+ #[ cfg( crossbeam_sanitize ) ]
6161const MAX_OBJECTS : usize = 4 ;
6262
6363/// A bag of deferred functions.
@@ -109,7 +109,7 @@ impl Default for Bag {
109109 #[ rustfmt:: skip]
110110 fn default ( ) -> Self {
111111 // TODO: [no_op; MAX_OBJECTS] syntax blocked by https://github.com/rust-lang/rust/issues/49147
112- #[ cfg( not( feature = "sanitize" ) ) ]
112+ #[ cfg( not( crossbeam_sanitize ) ) ]
113113 return Bag {
114114 len : 0 ,
115115 deferreds : [
@@ -177,7 +177,7 @@ impl Default for Bag {
177177 Deferred :: new ( no_op_func) ,
178178 ] ,
179179 } ;
180- #[ cfg( feature = "sanitize" ) ]
180+ #[ cfg( crossbeam_sanitize ) ]
181181 return Bag {
182182 len : 0 ,
183183 deferreds : [
@@ -278,7 +278,7 @@ impl Global {
278278 pub ( crate ) fn collect ( & self , guard : & Guard ) {
279279 let global_epoch = self . try_advance ( guard) ;
280280
281- let steps = if cfg ! ( feature = "sanitize" ) {
281+ let steps = if cfg ! ( crossbeam_sanitize ) {
282282 usize:: max_value ( )
283283 } else {
284284 Self :: COLLECT_STEPS
0 commit comments