Commit 3770474a authored by Dmitry Pleshkov's avatar Dmitry Pleshkov Committed by Facebook Github Bot

Fix ExceptionCounter.oneThread test case

Summary: Test fails because of loop unrolling: frames are not being grouped up

Reviewed By: ot

Differential Revision: D4034910

fbshipit-source-id: 159d3a4f116f90fdd0d51ee9de38634167ed0dc4
parent 3433e03c
......@@ -45,7 +45,9 @@ void throwAndCatch(F f) {
TEST(ExceptionCounter, oneThread) {
throwAndCatch(foo);
for (int i = 0; i < 10; ++i) {
// Use volatile to prevent loop unrolling (it screws up stack frame grouping).
for (volatile int i = 0; i < 10; ++i) {
throwAndCatch(bar);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment