| Code-Review | +1 |
// This branch handles a mystery whose root cause is still unknown.
//
// See also: https://crrev.com/c/7953898
if (slot_start.value() == 0) [[unlikely]] {
PA_DEBUG_DATA_ON_STACK("orig", orig_address);
PA_DEBUG_DATA_ON_STACK("test", test_address);
PA_DEBUG_DATA_ON_STACK("pool", pool);
PA_IMMEDIATE_CRASH();
}Should we instead make this be handled in SlotAddressAndSize or easier to do this here?
I ask because this slot_start.value() == 0 is only needed because bucket can be a nullptr. Otherwise I don't believe it ever returns 0? So we could even remove this branch entirely and base it purely on the bucket being nullptr?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// This branch handles a mystery whose root cause is still unknown.
//
// See also: https://crrev.com/c/7953898
if (slot_start.value() == 0) [[unlikely]] {
PA_DEBUG_DATA_ON_STACK("orig", orig_address);
PA_DEBUG_DATA_ON_STACK("test", test_address);
PA_DEBUG_DATA_ON_STACK("pool", pool);
PA_IMMEDIATE_CRASH();
}Should we instead make this be handled in SlotAddressAndSize or easier to do this here?
I ask because this slot_start.value() == 0 is only needed because bucket can be a nullptr. Otherwise I don't believe it ever returns 0? So we could even remove this branch entirely and base it purely on the bucket being nullptr?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |