< prev index next >
test/jdk/java/io/ByteArrayOutputStream/MaxCapacity.java
Print this page
@@ -1,7 +1,8 @@
/*
- * Copyright (c) 2014 Google Inc. All rights reserved.
+ * Copyright (c) 2014, Google Inc. All rights reserved.
+ * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -21,15 +22,15 @@
* questions.
*/
/*
* @test
- * @ignore This test has huge memory requirements
- * @run main/timeout=1800/othervm -Xmx8g MaxCapacity
* @bug 8055949
* @summary Check that we can write (almost) Integer.MAX_VALUE bytes
* to a ByteArrayOutputStream.
+ * @requires os.maxMemory > 8G
+ * @run main/timeout=1800/othervm -Xmx8g MaxCapacity
* @author Martin Buchholz
*/
import java.io.ByteArrayOutputStream;
public class MaxCapacity {
< prev index next >