-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When there is an exception in an inlinee which is inside an EH region, we end up leaving datastructures in stackwalker dirty. If the EH handler was a try catch, and if the same code is executed in a loop in the interprerter after BailOnNoException, the stack walker due to dirty datastructures assumes that there are inlinee frames on the stack.
- Loading branch information
meg-gupta
committed
Oct 1, 2017
1 parent
bf2d8af
commit d2e0a4e
Showing
9 changed files
with
192 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
//------------------------------------------------------------------------------------------------------- | ||
// Copyright (C) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
//------------------------------------------------------------------------------------------------------- | ||
|
||
function shapeyConstructor() { | ||
y = iczqcn; | ||
} | ||
|
||
function test1() { | ||
for (var w in [1,2]) { | ||
try { | ||
new shapeyConstructor(w); | ||
} catch (e) { | ||
} | ||
} | ||
} | ||
|
||
function throwFunc() { | ||
// dummy try-catch so that this function does not get inlined | ||
try { | ||
} | ||
catch (ex) { | ||
} | ||
throw "ex" ; | ||
} | ||
|
||
function caller() { | ||
throwFunc(w); | ||
} | ||
|
||
function test2() { | ||
for (var w in [1,2]) { | ||
try { | ||
new caller(); | ||
} catch (e) { | ||
} | ||
} | ||
} | ||
|
||
test1(); | ||
test2(); | ||
WScript.Echo("PASS"); | ||
|
||
|
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,46 @@ | ||
//------------------------------------------------------------------------------------------------------- | ||
// Copyright (C) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
//------------------------------------------------------------------------------------------------------- | ||
|
||
function throwFunc() { | ||
// dummy try-catch so that this function does not get inlined | ||
try { | ||
} | ||
catch (ex) { | ||
} | ||
throw "ex" ; | ||
} | ||
|
||
function caller() { | ||
throwFunc(w); | ||
} | ||
|
||
function shapeyConstructor() { | ||
y = iczqcn; | ||
} | ||
|
||
function test() { | ||
for (var w in [1,2]) { | ||
try { | ||
new caller(); | ||
} catch (e) { | ||
} | ||
} | ||
} | ||
|
||
function toptest() { | ||
try { | ||
test(); | ||
new shapeyConstructor(); | ||
} | ||
catch (ex) { | ||
} | ||
} | ||
|
||
toptest(); | ||
toptest(); | ||
toptest(); | ||
WScript.Echo("PASS"); | ||
|
||
|
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