@@ -136,7 +136,8 @@ static bool arena_extent_commit(extent_hooks_t *extent_hooks, void *addr,
136
136
(void )length ; // unused
137
137
(void )arena_ind ; // unused
138
138
139
- return true; // true means failure (unsupported)
139
+ // TODO: add this function to the provider API to support Windows and USM
140
+ return false; // false means success (commit is a nop)
140
141
}
141
142
142
143
// arena_extent_decommit - an extent decommit function conforms to the extent_decommit_t type
@@ -156,6 +157,7 @@ static bool arena_extent_decommit(extent_hooks_t *extent_hooks, void *addr,
156
157
(void )length ; // unused
157
158
(void )arena_ind ; // unused
158
159
160
+ // TODO: add this function to the provider API to support Windows and USM
159
161
return true; // true means failure (unsupported)
160
162
}
161
163
@@ -215,7 +217,8 @@ static bool arena_extent_split(extent_hooks_t *extent_hooks, void *addr,
215
217
(void )committed ; // unused
216
218
(void )arena_ind ; // unused
217
219
218
- return true; // true means failure (unsupported)
220
+ // TODO: add this function to the provider API to support Windows and USM
221
+ return false; // false means success (split is a nop)
219
222
}
220
223
221
224
// arena_extent_merge - an extent merge function conforms to the extent_merge_t type and optionally
@@ -235,7 +238,8 @@ static bool arena_extent_merge(extent_hooks_t *extent_hooks, void *addr_a,
235
238
(void )committed ; // unused
236
239
(void )arena_ind ; // unused
237
240
238
- return true; // true means failure (unsupported)
241
+ // TODO: add this function to the provider API to support Windows and USM
242
+ return false; // false means success (merge is a nop)
239
243
}
240
244
241
245
// The extent_hooks_t structure comprises function pointers which are described individually below.
0 commit comments