--- old/src/share/vm/runtime/arguments.cpp 2015-04-01 14:48:16.875508909 +0300 +++ new/src/share/vm/runtime/arguments.cpp 2015-04-01 14:48:16.751508909 +0300 @@ -3150,7 +3150,8 @@ uintx max_tenuring_thresh = 0; if(!parse_uintx(tail, &max_tenuring_thresh, 0)) { jio_fprintf(defaultStream::error_stream(), - "Invalid MaxTenuringThreshold: %s\n", option->optionString); + "Improperly specified VM option 'MaxTenuringThreshold=%s'\n", tail); + return JNI_EINVAL; } FLAG_SET_CMDLINE(uintx, MaxTenuringThreshold, max_tenuring_thresh); --- old/test/gc/arguments/TestInitialTenuringThreshold.java 2015-04-01 14:48:17.483508909 +0300 +++ new/test/gc/arguments/TestInitialTenuringThreshold.java 2015-04-01 14:48:17.247508909 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. +* Copyright (c) 2013, 2015, 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 @@ -68,8 +68,9 @@ runWithThresholds(10, 0, true); runWithThresholds(9, 8, true); runWithThresholds(-1, 8, true); + runWithThresholds(0, -1, true); runWithThresholds(8, -1, true); runWithThresholds(16, 8, true); runWithThresholds(8, 17, true); } -} \ No newline at end of file +}