mirror of
https://github.com/servo/servo.git
synced 2025-10-08 20:49:24 +01:00
Dump the requested aligment if out of memory while allocating a table.
This commit is contained in:
parent
2a139cebac
commit
aebe2cfac2
2 changed files with 17 additions and 6 deletions
|
@ -778,9 +778,10 @@ impl<K, V> RawTable<K, V> {
|
|||
let buffer = alloc(size, alignment);
|
||||
|
||||
if buffer.is_null() {
|
||||
use AllocationInfo;
|
||||
return Err(FailedAllocationError {
|
||||
reason: "out of memory when allocating RawTable",
|
||||
allocation_size: Some(size),
|
||||
allocation_info: Some(AllocationInfo { size, alignment }),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue