提交 d911db2d 编写于 作者: T twisti

Merge

...@@ -306,12 +306,6 @@ import java.util.Objects; ...@@ -306,12 +306,6 @@ import java.util.Objects;
return this; return this;
} }
private void setFlags(int flags) {
this.flags = flags;
assert(testAnyFlags(ALL_KINDS));
assert(referenceKindIsConsistent());
}
private boolean testFlags(int mask, int value) { private boolean testFlags(int mask, int value) {
return (flags & mask) == value; return (flags & mask) == value;
} }
...@@ -452,8 +446,10 @@ import java.util.Objects; ...@@ -452,8 +446,10 @@ import java.util.Objects;
this.clazz = defClass; this.clazz = defClass;
this.name = name; this.name = name;
this.type = type; this.type = type;
setFlags(flags); this.flags = flags;
assert(testAnyFlags(ALL_KINDS));
assert(this.resolution == null); // nobody should have touched this yet assert(this.resolution == null); // nobody should have touched this yet
//assert(referenceKindIsConsistent()); // do this after resolution
} }
private void expandFromVM() { private void expandFromVM() {
......
/* /*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
/* @test /* @test
* @summary unit tests for method handles which permute their arguments * @summary unit tests for method handles which permute their arguments
* @run junit/othervm -ea -esa -DPermuteArgsTest.MAX_ARITY=8 test.java.lang.invoke.PermuteArgsTest * @run junit/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies -ea -esa -DPermuteArgsTest.MAX_ARITY=8 test.java.lang.invoke.PermuteArgsTest
*/ */
/* Examples of manual runs: /* Examples of manual runs:
* java -DPermuteArgsTest.{DRY_RUN=true,MAX_ARITY=253} test.java.lang.invoke.PermuteArgsTest * java -DPermuteArgsTest.{DRY_RUN=true,MAX_ARITY=253} test.java.lang.invoke.PermuteArgsTest
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册