@@ -59,7 +59,7 @@ struct AP64 { // Allocator Params. Short name for shorter demangled names..
59
59
static const uptr kMetadataSize = 16 ;
60
60
typedef ::SizeClassMap SizeClassMap;
61
61
typedef NoOpMapUnmapCallback MapUnmapCallback;
62
- static const uptr kFlags = 0 ;
62
+ static const uptr kFlags = SizeClassAllocator32FlagMasks:: kForTest ;
63
63
using AddressSpaceView = AddressSpaceViewTy;
64
64
};
65
65
@@ -70,7 +70,7 @@ struct AP64Dyn {
70
70
static const uptr kMetadataSize = 16 ;
71
71
typedef ::SizeClassMap SizeClassMap;
72
72
typedef NoOpMapUnmapCallback MapUnmapCallback;
73
- static const uptr kFlags = 0 ;
73
+ static const uptr kFlags = SizeClassAllocator32FlagMasks:: kForTest ;
74
74
using AddressSpaceView = AddressSpaceViewTy;
75
75
};
76
76
@@ -81,7 +81,7 @@ struct AP64Compact {
81
81
static const uptr kMetadataSize = 16 ;
82
82
typedef CompactSizeClassMap SizeClassMap;
83
83
typedef NoOpMapUnmapCallback MapUnmapCallback;
84
- static const uptr kFlags = 0 ;
84
+ static const uptr kFlags = SizeClassAllocator32FlagMasks:: kForTest ;
85
85
using AddressSpaceView = AddressSpaceViewTy;
86
86
};
87
87
@@ -92,7 +92,7 @@ struct AP64VeryCompact {
92
92
static const uptr kMetadataSize = 16 ;
93
93
typedef VeryCompactSizeClassMap SizeClassMap;
94
94
typedef NoOpMapUnmapCallback MapUnmapCallback;
95
- static const uptr kFlags = 0 ;
95
+ static const uptr kFlags = SizeClassAllocator32FlagMasks:: kForTest ;
96
96
using AddressSpaceView = AddressSpaceViewTy;
97
97
};
98
98
@@ -103,7 +103,7 @@ struct AP64Dense {
103
103
static const uptr kMetadataSize = 16 ;
104
104
typedef DenseSizeClassMap SizeClassMap;
105
105
typedef NoOpMapUnmapCallback MapUnmapCallback;
106
- static const uptr kFlags = 0 ;
106
+ static const uptr kFlags = SizeClassAllocator32FlagMasks:: kForTest ;
107
107
using AddressSpaceView = AddressSpaceViewTy;
108
108
};
109
109
@@ -155,7 +155,7 @@ struct AP32Compact {
155
155
using AddressSpaceView = AddressSpaceViewTy;
156
156
using ByteMap = FlatByteMap<kFlatByteMapSize , AddressSpaceView>;
157
157
typedef NoOpMapUnmapCallback MapUnmapCallback;
158
- static const uptr kFlags = 0 ;
158
+ static const uptr kFlags = SizeClassAllocator32FlagMasks:: kForTest ;
159
159
};
160
160
template <typename AddressSpaceView>
161
161
using Allocator32CompactASVT =
@@ -302,7 +302,8 @@ struct AP32SeparateBatches {
302
302
using ByteMap = FlatByteMap<kFlatByteMapSize , AddressSpaceView>;
303
303
typedef NoOpMapUnmapCallback MapUnmapCallback;
304
304
static const uptr kFlags =
305
- SizeClassAllocator32FlagMasks::kUseSeparateSizeClassForBatch ;
305
+ SizeClassAllocator32FlagMasks::kUseSeparateSizeClassForBatch |
306
+ SizeClassAllocator32FlagMasks::kForTest ;
306
307
};
307
308
template <typename AddressSpaceView>
308
309
using Allocator32SeparateBatchesASVT =
@@ -438,7 +439,7 @@ struct AP64WithCallback {
438
439
static const uptr kMetadataSize = 16 ;
439
440
typedef ::SizeClassMap SizeClassMap;
440
441
typedef TestMapUnmapCallback MapUnmapCallback;
441
- static const uptr kFlags = 0 ;
442
+ static const uptr kFlags = SizeClassAllocator32FlagMasks:: kForTest ;
442
443
using AddressSpaceView = AddressSpaceViewTy;
443
444
};
444
445
@@ -476,7 +477,7 @@ struct AP32WithCallback {
476
477
using AddressSpaceView = AddressSpaceViewTy;
477
478
using ByteMap = FlatByteMap<kFlatByteMapSize , AddressSpaceView>;
478
479
typedef TestMapUnmapCallback MapUnmapCallback;
479
- static const uptr kFlags = 0 ;
480
+ static const uptr kFlags = SizeClassAllocator32FlagMasks:: kForTest ;
480
481
};
481
482
482
483
TEST (SanitizerCommon, SizeClassAllocator32MapUnmapCallback) {
@@ -1039,7 +1040,7 @@ struct AP64_SpecialSizeClassMap {
1039
1040
static const uptr kMetadataSize = 0 ;
1040
1041
typedef SpecialSizeClassMap SizeClassMap;
1041
1042
typedef NoOpMapUnmapCallback MapUnmapCallback;
1042
- static const uptr kFlags = 0 ;
1043
+ static const uptr kFlags = SizeClassAllocator32FlagMasks:: kForTest ;
1043
1044
using AddressSpaceView = AddressSpaceViewTy;
1044
1045
};
1045
1046
0 commit comments