< prev index next >

test/jdk/jdk/jfr/startupargs/TestMemoryOptions.java

Print this page
rev 51054 : imported patch 9000013-aixDisableJFR-requires.patch


  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.jfr.startupargs;
  27 
  28 import java.util.List;
  29 import java.util.ArrayList;
  30 
  31 import jdk.jfr.internal.Options;
  32 import jdk.test.lib.process.OutputAnalyzer;
  33 import jdk.test.lib.process.ProcessTools;
  34 import jdk.internal.misc.Unsafe;
  35 
  36 /*
  37  * @test
  38  * @key jfr

  39  * @library /test/lib
  40  * @modules jdk.jfr/jdk.jfr.internal
  41  *                 java.base/jdk.internal.misc
  42  * @run main/timeout=900 jdk.jfr.startupargs.TestMemoryOptions
  43  */
  44 public class TestMemoryOptions {
  45 
  46     public enum Unit {
  47         b('b'), k('k'), m('m'), g('g');
  48 
  49         private char unit;
  50 
  51         Unit(char unit) {
  52             this.unit = unit;
  53         }
  54 
  55         char getUnit() {
  56             return unit;
  57         }
  58     };




  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.jfr.startupargs;
  27 
  28 import java.util.List;
  29 import java.util.ArrayList;
  30 
  31 import jdk.jfr.internal.Options;
  32 import jdk.test.lib.process.OutputAnalyzer;
  33 import jdk.test.lib.process.ProcessTools;
  34 import jdk.internal.misc.Unsafe;
  35 
  36 /**
  37  * @test
  38  * @key jfr
  39  * @requires vm.hasJFR
  40  * @library /test/lib
  41  * @modules jdk.jfr/jdk.jfr.internal
  42  *                 java.base/jdk.internal.misc
  43  * @run main/timeout=900 jdk.jfr.startupargs.TestMemoryOptions
  44  */
  45 public class TestMemoryOptions {
  46 
  47     public enum Unit {
  48         b('b'), k('k'), m('m'), g('g');
  49 
  50         private char unit;
  51 
  52         Unit(char unit) {
  53             this.unit = unit;
  54         }
  55 
  56         char getUnit() {
  57             return unit;
  58         }
  59     };


< prev index next >