Merge "memunreachable_test: don't use write to escape addresses"
am: f261f518ea
Change-Id: Ibdf91f3d9ab2285621d0111c7697e98082381234
This commit is contained in:
commit
ab29c52ebf
1 changed files with 2 additions and 1 deletions
|
|
@ -47,7 +47,8 @@ class HiddenPointer {
|
|||
|
||||
// Trick the compiler into thinking a value on the stack is still referenced.
|
||||
static void Ref(void** ptr) {
|
||||
write(0, ptr, 0);
|
||||
void** volatile storage;
|
||||
storage = ptr;
|
||||
}
|
||||
|
||||
class MemunreachableTest : public ::testing::Test {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue