Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Scheduler] Fix de-opt caused by out-of-bounds access (facebook#21147)
Scheduler's heap implementation sometimes accesses indices that are out of bounds (larger than the size of the array). This causes a VM de-opt. This change fixes the de-opt by always checking the index before accessing the array. In exchange, we can remove the typecheck on the returned element. Background: https://v8.dev/blog/elements-kinds#avoid-reading-beyond-the-length-of-the-array Co-authored-by: Andrew Clark <[email protected]>
- Loading branch information