diff options
author | Mathieu Chartier <mathieuc@google.com> | 2016-09-26 11:39:52 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2016-09-26 16:30:40 -0700 |
commit | 3f7f03ce9a102a23961753753b5aa500226b0581 (patch) | |
tree | 9ff7596cab02c78fc78c95129d12f836cb262531 /compiler/optimizing/graph_visualizer.cc | |
parent | 0cfe19af3b7395658210ea6044a65c9811962a7a (diff) |
Add basic support for object pointer poisoning
ObjPtr is a pointer that checks for heap corruption and is meant
to replace mirror::Object* in places where a mirror::Object* is a
local variable. Whenever there is a possible suspend point, the
current thread's object pointers are all invalidated. This is done
by storing a cookie in the object pointer associated with what thread
created it.
Added test case in object_test.
Example failure:
object_test F 25379 25379 object_pointer.h:70] Check failed:
IsValid() Invalid cookie, expected 0 but got 2
Bug: 31113334
Test: test-art-host-gtest-object_test
Change-Id: I9fa80ccaf2f0448621942935af702a243a3e1ee6
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions