< prev index next >

test/gc/arguments/TestSurvivorAlignmentInBytesOption.java

Print this page




  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 import com.oracle.java.testlibrary.ExitCode;
  25 import com.oracle.java.testlibrary.cli.CommandLineOptionTest;
  26 
  27 /**
  28  * @test
  29  * @bug 8031323
  30  * @summary Verify SurvivorAlignmentInBytes option processing.
  31  * @library /testlibrary

  32  * @requires vm.opt.SurvivorAlignmentInBytes == null
  33  *           & vm.opt.ObjectAlignmentInBytes == null
  34  *           & vm.opt.UnlockExperimentalVMOptions == null
  35  *           & (vm.opt.IgnoreUnrecognizedVMOptions == null
  36  *              | vm.opt.IgnoreUnrecognizedVMOptions == "false")
  37  * @run main TestSurvivorAlignmentInBytesOption
  38  */
  39 public class TestSurvivorAlignmentInBytesOption {
  40     public static void main(String args[]) throws Throwable {
  41         String optionName = "SurvivorAlignmentInBytes";
  42         String unlockExperimentalVMOpts = "UnlockExperimentalVMOptions";
  43         String optionIsExperimental
  44                 = CommandLineOptionTest.getExperimentalOptionErrorMessage(
  45                 optionName);
  46         String valueIsTooSmall= ".*SurvivorAlignmentInBytes=.*must be greater"
  47                 + " than ObjectAlignmentInBytes.*";
  48         String mustBePowerOf2 = ".*SurvivorAlignmentInBytes=.*must be "
  49                 + "power of 2.*";
  50 
  51         // Verify that without -XX:+UnlockExperimentalVMOptions usage of




  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 import com.oracle.java.testlibrary.ExitCode;
  25 import com.oracle.java.testlibrary.cli.CommandLineOptionTest;
  26 
  27 /**
  28  * @test
  29  * @bug 8031323
  30  * @summary Verify SurvivorAlignmentInBytes option processing.
  31  * @library /testlibrary
  32  * @build com.oracle.java.testlibrary.*
  33  * @requires vm.opt.SurvivorAlignmentInBytes == null
  34  *           & vm.opt.ObjectAlignmentInBytes == null
  35  *           & vm.opt.UnlockExperimentalVMOptions == null
  36  *           & (vm.opt.IgnoreUnrecognizedVMOptions == null
  37  *              | vm.opt.IgnoreUnrecognizedVMOptions == "false")
  38  * @run main TestSurvivorAlignmentInBytesOption
  39  */
  40 public class TestSurvivorAlignmentInBytesOption {
  41     public static void main(String args[]) throws Throwable {
  42         String optionName = "SurvivorAlignmentInBytes";
  43         String unlockExperimentalVMOpts = "UnlockExperimentalVMOptions";
  44         String optionIsExperimental
  45                 = CommandLineOptionTest.getExperimentalOptionErrorMessage(
  46                 optionName);
  47         String valueIsTooSmall= ".*SurvivorAlignmentInBytes=.*must be greater"
  48                 + " than ObjectAlignmentInBytes.*";
  49         String mustBePowerOf2 = ".*SurvivorAlignmentInBytes=.*must be "
  50                 + "power of 2.*";
  51 
  52         // Verify that without -XX:+UnlockExperimentalVMOptions usage of


< prev index next >