diff options
author | Sebastien Hertz <shertz@google.com> | 2017-04-14 15:05:12 +0200 |
---|---|---|
committer | Sebastien Hertz <shertz@google.com> | 2017-04-18 18:06:54 +0200 |
commit | 1c8f4ff04062407db3d2dd834dd6bc24f6662c4d (patch) | |
tree | a116c7d55fc1bcff2b451028f46a1196ee15d990 /compiler/optimizing/graph_visualizer.cc | |
parent | c1be9f2b776b4900e0603013f7c4d84e534f0bb0 (diff) |
Always check result of Thread::ModifySuspendCount
Ensures that we never ignore the result of ModifySuspendCount so that
we can react if the suspend count is not updated as expected.
This CL does the following:
* Adds __attribute__((warn_unused_result)) on the method to raise an
error at compilation time if the result is ignored.
* Wraps calls with DCHECK where the result used to be ignored.
Bug: 27385848
Test: make -j test-art-host
Test: art/tools/run-jdwp-tests.sh --mode=host --variant=X64
Change-Id: I2d0e1ab7158c70ec8076c8bae6e4b814aee75af6
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions