// free up as much core as we need to
swap_out = size - core_head.avail;
+#ifndef PREALLOCATE_SWAP
assert(swap_out <= swap_head.avail);
+#endif
do_swap_out(swap_out);
// allocate core, can't fail
// free up as much core as we need to
swap_out = size_change - core_head.avail;
+#ifndef PREALLOCATE_SWAP
assert(swap_out <= swap_head.avail);
+#endif
do_swap_out(swap_out);
// reallocate core, can't fail
}
// free up as much core as we can
+#ifndef PREALLOCATE_SWAP
+ assert(swap_out <= swap_head.avail);
+#endif
do_swap_out(swap_out);
// add to core pool, using dedicated core item