summaryrefslogtreecommitdiffstats
path: root/test/044-proxy
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2015-06-18 10:17:26 -0700
committerMathieu Chartier <mathieuc@google.com>2015-06-18 15:45:40 -0700
commitdfc5db6a6deea37c217e29e810e757945dae8586 (patch)
treef0ff1f7b67e8681cfa9dda09d5fc44f92872f966 /test/044-proxy
parentbf1fa2ccb5e7409910b99dc46b616e44c66ade68 (diff)
downloadart-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.java2
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++;