hw: distinguish 'Alloc_error' conditions in 'Cap_space'

Issue #5057
This commit is contained in:
Christian Prochaska 2023-11-16 13:20:01 +01:00 committed by Christian Helmuth
parent 0f54ad8e26
commit 789ae1ea8d

View File

@ -144,9 +144,8 @@ void Cap_space::upgrade_slab(Allocator &alloc)
[&] (void *ptr) { [&] (void *ptr) {
_slab.insert_sb(ptr); }, _slab.insert_sb(ptr); },
[&] (Allocator::Alloc_error) { [&] (Allocator::Alloc_error error) {
/* XXX distinguish error conditions */ Allocator::throw_alloc_error(error);
throw Out_of_ram();
}); });
} }