This change adds a mechanism to track the depth of frame iteration. The iteration depth is stored in the StackFrameStateI'm missing some context. What is the motivation? And why store the depth both in the state and the iterator?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
This change adds a mechanism to track the depth of frame iteration. The iteration depth is stored in the StackFrameStateI'm missing some context. What is the motivation? And why store the depth both in the state and the iterator?
I want to support RISC-V ShdaowStack. When PointerAuthentication::ReplacePC modiys pc on stack, RISC-V ShdaowStack need the info for depth. I think I can only store depth in state.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
This change adds a mechanism to track the depth of frame iteration. The iteration depth is stored in the StackFrameStateYahan Lu (LuYahan)I'm missing some context. What is the motivation? And why store the depth both in the state and the iterator?
I want to support RISC-V ShdaowStack. When PointerAuthentication::ReplacePC modiys pc on stack, RISC-V ShdaowStack need the info for depth. I think I can only store depth in state.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
nits
This change adds a mechanism to track the depth of frame iteration. The iteration depth is stored in the StackFrameStatePlease format the comment to fit into 72 chars and please add `.` at the end.
int iterate_depth = -1;`iteration_depth` sounds a bit better and please add a comment.
Please consider making the value `uint32_t` and initializing it to `0` - this would avoid the need to modify `Reset` functions below. I guess it's fare to assume that a stack iterator that wasn't advanced yet points to a frame of depth zero.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
This change adds a mechanism to track the depth of frame iteration. The iteration depth is stored in the StackFrameStatePlease format the comment to fit into 72 chars and please add `.` at the end.
Done
`iteration_depth` sounds a bit better and please add a comment.
Please consider making the value `uint32_t` and initializing it to `0` - this would avoid the need to modify `Reset` functions below. I guess it's fare to assume that a stack iterator that wasn't advanced yet points to a frame of depth zero.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
The iteration depth is stored in the StackFrameState.Since there's no tracking bug for this work (or maybe you have one?), could you please add a comment why are you doing this or/and maybe add a tracking `Bug:` too.
// see StackFrameIterator::AdvancePlease finish comments with `.`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
Since there's no tracking bug for this work (or maybe you have one?), could you please add a comment why are you doing this or/and maybe add a tracking `Bug:` too.
Done
Please finish comments with `.`.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
lgtm
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[frames] Track stack frame iteration depth in StackFrameIterator
This change adds a mechanism to track the depth of frame iteration.
The iteration depth is stored in the StackFrameState.
Bug:454180124
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |