diff options
author | Alex Light <allight@google.com> | 2019-10-31 13:48:53 -0700 |
---|---|---|
committer | Treehugger Robot <treehugger-gerrit@google.com> | 2019-10-31 22:18:30 +0000 |
commit | 3155aa4e6167c5f346aa5e90da43ee0e9d04d2ec (patch) | |
tree | ed6a28a96717a0c0df963c506f7cf15f42220883 /compiler/optimizing/graph_visualizer.cc | |
parent | 014c16c3e1ccedbea025111bc79f0a0351ba52d0 (diff) |
Add DCHECK that Allocation PreFenceVisitors do not suspend
As PreFenceVisitors perform initial setup of objects before they are
fully visible to the GC they should not ever suspend. This adds a
ScopedAssertNoThreadSuspension around calls to the fence in order to
verify (on kIsDebugBuild) that no suspend occurs.
Test: ./test.py --host
Change-Id: I3b073252cf74289da30e1a5ebf4272dcc4c0023f
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions