slab: throw exception if initial allocation fails

Issue #1983
This commit is contained in:
Alexander Boettcher 2016-05-28 23:27:53 +02:00 committed by Christian Helmuth
parent 93845e1de5
commit 5c10653d8a

View File

@ -222,7 +222,7 @@ Slab::Slab(size_t slab_size, size_t block_size, void *initial_sb,
if (!_curr_sb) {
PERR("failed to obtain initial slab block");
return;
throw Out_of_memory();
}
/* init first slab block */