OSDN Git Service

ART: Use an iterative way in DoDFSPreOrderSSARename()
authorChao-ying Fu <chao-ying.fu@intel.com>
Thu, 13 Aug 2015 00:52:35 +0000 (17:52 -0700)
committerChao-ying Fu <chao-ying.fu@intel.com>
Tue, 29 Sep 2015 17:04:42 +0000 (10:04 -0700)
commita661d7d12ce5736cab1fe1d3b3d559e37b902b5b
tree4e5a12e3dd31c4fdcbb5c0944a6e7f7e2495c5d1
parentf6860a5f12a8fe974b8f25e67a19a71bf0378d62
ART: Use an iterative way in DoDFSPreOrderSSARename()

This patch changes the recursion to an iterative implementation.
It tries to solve a stack overflow issue when installing
Facebook on some devices.  The recursion reaches more than 2600
levels when compiling
"java.util.Map com.facebook.graphql.model.GraphQLNodeDeserializer.a()".

Change-Id: Ibe74359526e10fe6afa833e3bb46b6138aaf5435
Signed-off-by: Chao-ying Fu <chao-ying.fu@intel.com>
compiler/dex/ssa_transformation.cc