From 9c970b906a0971ea286a2df349c4d157fc349639 Mon Sep 17 00:00:00 2001 From: Mythri Alle Date: Thu, 2 Dec 2021 15:26:31 +0000 Subject: Mark HMethodEntry/ExitHook as CanThrow MethodEntry / Exit can throw so mark them as such. They already marked as causing side-effects and that they could trigger a GC so this may not be a correctness issue. Test: art/test.py Bug: 208587492 Change-Id: Ic741d9fd3c794da77c46104e859629d1afa48336 --- compiler/optimizing/nodes.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/optimizing/nodes.h') diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index c50e04791d..c00ac4e5d9 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -3012,6 +3012,8 @@ class HMethodEntryHook : public HExpression<0> { return true; } + bool CanThrow() const override { return true; } + DECLARE_INSTRUCTION(MethodEntryHook); protected: @@ -3029,6 +3031,8 @@ class HMethodExitHook : public HExpression<1> { return true; } + bool CanThrow() const override { return true; } + DECLARE_INSTRUCTION(MethodExitHook); protected: -- cgit v1.2.3-59-g8ed1b