commit | 3155aa4e6167c5f346aa5e90da43ee0e9d04d2ec | [log] [tgz] |
---|---|---|
author | Alex Light <allight@google.com> | Thu Oct 31 13:48:53 2019 -0700 |
committer | Treehugger Robot <treehugger-gerrit@google.com> | Thu Oct 31 22:18:30 2019 +0000 |
tree | ed6a28a96717a0c0df963c506f7cf15f42220883 | |
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