forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1877406 - Set native object shape to a safe value if allocating d…
…ynamic slots fails r=jandem The assertion is failing beacuse the number of slots allocated (zero) doesn't match the number we expect given the object's shape. Since allocation is failing and the object will be unreachable, the patch sets the shape to that of a plain object with zero slots. This should be a safe default. We have to also ensure that this shape always exists so we can allocate it when the global is initialized. This means we can also remove the workaround fix for bug 1828396. The patch also fixes DumpHeap so it doesn't try and flcose a null file handle, which crashes on Windows. Differential Revision: https://phabricator.services.mozilla.com/D200675
- Loading branch information
Showing
6 changed files
with
28 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// |jit-test| skip-if: !('oomTest' in this); --fuzzing-safe | ||
|
||
oomTest(Debugger); | ||
oomTest(Debugger); | ||
async function* f() {} | ||
f().return(); | ||
dumpHeap(f); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters