diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-06-18 10:17:26 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-06-18 15:45:40 -0700 |
commit | dfc5db6a6deea37c217e29e810e757945dae8586 (patch) | |
tree | f0ff1f7b67e8681cfa9dda09d5fc44f92872f966 /test/044-proxy | |
parent | bf1fa2ccb5e7409910b99dc46b616e44c66ade68 (diff) | |
download | art-dfc5db6a6deea37c217e29e810e757945dae8586.zip art-dfc5db6a6deea37c217e29e810e757945dae8586.tar.gz art-dfc5db6a6deea37c217e29e810e757945dae8586.tar.bz2 |
Fix moving GC bugs in proxy stub for X86/X86_64
Needed to restore the refs.
(cherry picked from commit 9346ff0cfad6344d0bf4eaa69362dbe1987ac054)
Bug: 21907554
Change-Id: I562906dff07dcaa78dfb39646ba9ab35a5f56c6c
Diffstat (limited to 'test/044-proxy')
-rw-r--r-- | test/044-proxy/src/ReturnsAndArgPassing.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/044-proxy/src/ReturnsAndArgPassing.java b/test/044-proxy/src/ReturnsAndArgPassing.java index a173410..225cc5b 100644 --- a/test/044-proxy/src/ReturnsAndArgPassing.java +++ b/test/044-proxy/src/ReturnsAndArgPassing.java @@ -57,6 +57,8 @@ public class ReturnsAndArgPassing { check(proxy instanceof Proxy); check(method.getDeclaringClass() == MyInterface.class); String name = method.getName(); + // Check for moving GC bugs in proxy stubs. + Runtime.getRuntime().gc(); if (name.endsWith("Foo")) { check(args == null); fooInvocations++; |