summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2019-03-20 15:52:13 -0700
committerTreehugger Robot <treehugger-gerrit@google.com>2019-06-10 18:33:25 +0000
commitb7c640d364d32b79cb52d04750b063667a9a0c86 (patch)
tree9caafc96879f83f8e5dd3cd45b9005be6e2b7deb /compiler/optimizing/graph_visualizer.cc
parent3ffb5b1576f8af0c361284ebd8d2d54c70ede3ff (diff)
JVMTI Force early return
Add support for can_force_early_return jvmti capability. This allows one to force java frames to exit early. Exited frames have all of their normal locks released. We implement this by modifying the existing method exit events to allow one to modify the exit value during the callback. This is used to implement ForceEarlyReturn by adding internal-only events that will change the return value of methods once they return (using kForcePopFrame) avoiding the need to modify the actual interpreter very deeply. This also makes it simple to continue to use the standard deoptimization functions to force the actual return. In order to simplify book-keeping the internal event is refcounted, not associated with any specific jvmtiEnv, and only settable on specific threads. The internal event is added by the ForceEarlyReturn function and then removed by the MethodExit event when we update the return value. Bug: 130028055 Test: ./test.py --host Change-Id: Ifa44605b4e8032605f503a654ddf4bd2fc6b60bf
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions