12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test LFGarbageCollectedTest
26 * @bug 8046703
27 * @key randomness
28 * @ignore 8078602
29 * @summary Test verifies that lambda forms are garbage collected
30 * @author kshefov
31 * @library /lib/testlibrary /java/lang/invoke/common
32 * @build TestMethods
33 * @build LambdaFormTestCase
34 * @build LFGarbageCollectedTest
35 * @run main/othervm -Xmx64m
36 * -XX:SoftRefLRUPolicyMSPerMB=0
37 * -XX:+HeapDumpOnOutOfMemoryError
38 * -DHEAP_DUMP=false
39 * LFGarbageCollectedTest
40 */
41
42 import java.lang.invoke.MethodHandle;
43 import java.lang.invoke.MethodType;
44 import java.lang.ref.PhantomReference;
45 import java.lang.ref.Reference;
46 import java.lang.ref.ReferenceQueue;
47 import java.lang.reflect.InvocationTargetException;
48 import java.util.EnumSet;
49 import java.util.Map;
50
51 /**
|
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test LFGarbageCollectedTest
26 * @bug 8046703
27 * @key randomness
28 * @ignore 8078602
29 * @summary Test verifies that lambda forms are garbage collected
30 * @author kshefov
31 * @library /lib/testlibrary /java/lang/invoke/common
32 * @build jdk.test.lib.TimeLimitedRunner
33 * @build TestMethods
34 * @build LambdaFormTestCase
35 * @build LFGarbageCollectedTest
36 * @run main/othervm -Xmx64m
37 * -XX:SoftRefLRUPolicyMSPerMB=0
38 * -XX:+HeapDumpOnOutOfMemoryError
39 * -DHEAP_DUMP=false
40 * LFGarbageCollectedTest
41 */
42
43 import java.lang.invoke.MethodHandle;
44 import java.lang.invoke.MethodType;
45 import java.lang.ref.PhantomReference;
46 import java.lang.ref.Reference;
47 import java.lang.ref.ReferenceQueue;
48 import java.lang.reflect.InvocationTargetException;
49 import java.util.EnumSet;
50 import java.util.Map;
51
52 /**
|