summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorMingyao Yang <mingyao@google.com>2016-04-28 16:23:01 -0700
committerMingyao Yang <mingyao@google.com>2016-05-05 11:44:27 -0700
commit504a69081f63818ca332ddaf54e8198448554538 (patch)
tree337b397a2167c91ada31f33f9613b9ec6479c4a3 /compiler/optimizing/graph_visualizer.cc
parentb652da7aae5515c58c776a6975305d895f81ac19 (diff)
Fix assert failure in interpreter after deoptimization.
There is code that does new String(chararr, 0, chararr_count); which under debuggable turns into a call into pNewEmptyString() plus a call into pNewStringFromChars_CII(). Even though we currently don't patch return pc in a runtime method, calling into pNewEmptyString() is special since it's hacked such that it's acting as if the caller calls into the java method StringFactory.newEmptyString() directly. So deoptimization can now happen at the NewEmptyString site and the assert is triggered since it's a new instance instead of an invoke instruction. The fix relaxes the assert to allow the special case. Bug: 28555675 Change-Id: Idbb159b5aa450df2344cd93ae74fef5f55bdc534
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions