forked from facebook/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "kind" to raiseStackOverflow; increase native stack depth limit.
Summary: Oleg reported the stack overflow detailed in the task. This diff does two things: 1) Increases the native stack depth limit. This allows Oleg's failing execution succeed. 2) Adds a "kind" argument to raiseStackOverflow. This causes different kinds of overflows to get different JS exception messgages, distinguishing between exhausting the runtime's register stack, using up the native stack in which Hermes is executing, and a limit on the depth of JSON expressions being parsed. I added (2) because it would have been really useful in debugging this crash. I had to instrument all call sites to runtime->raiseStackOverflow() to figure this out. (Oleg was running things for me, because it only repro'd for him, and I couldn't very easily ask him to use agdb...) Reviewed By: avp Differential Revision: D16231409 fbshipit-source-id: 852543f44b54ab7dcd15d944f4fcff30d9330a38
- Loading branch information
1 parent
a4b8642
commit 5ff757c
Showing
10 changed files
with
61 additions
and
29 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
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
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
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