< prev index next >

test/hotspot/jtreg/compiler/eliminateAutobox/TestLongBoxing.java

Print this page

 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 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
 26  * @bug 6934604
 27  * @summary enable parts of EliminateAutoBox by default
 28  *
 29  * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:+EliminateAutoBox
 30  *                   compiler.eliminateAutobox.TestLongBoxing


 31  * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:+EliminateAutoBox
 32  *                   -XX:CompileCommand=exclude,compiler.eliminateAutobox.TestLongBoxing::dummy
 33  *                   -XX:CompileCommand=exclude,compiler.eliminateAutobox.TestLongBoxing::foo
 34  *                   -XX:CompileCommand=exclude,compiler.eliminateAutobox.TestLongBoxing::foob
 35  *                   compiler.eliminateAutobox.TestLongBoxing
 36  * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:-EliminateAutoBox
 37  *                   -XX:CompileCommand=exclude,compiler.eliminateAutobox.TestLongBoxing::dummy
 38  *                   -XX:CompileCommand=exclude,compiler.eliminateAutobox.TestLongBoxing::foo
 39  *                   -XX:CompileCommand=exclude,compiler.eliminateAutobox.TestLongBoxing::foob
 40  *                   compiler.eliminateAutobox.TestLongBoxing
 41  */
 42 
 43 package compiler.eliminateAutobox;
 44 
 45 public class TestLongBoxing {
 46 
 47   static final Long ibc = new Long(1);
 48 
 49   //===============================================
 50   // Non-inlined methods to test deoptimization info

 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 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
 26  * @bug 6934604
 27  * @summary enable parts of EliminateAutoBox by default
 28  *
 29  * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:+EliminateAutoBox
 30  *                   compiler.eliminateAutobox.TestLongBoxing
 31  * @run main/othervm --enable-preview -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:+EliminateAutoBox
 32  *                   compiler.eliminateAutobox.TestLongBoxing
 33  * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:+EliminateAutoBox
 34  *                   -XX:CompileCommand=exclude,compiler.eliminateAutobox.TestLongBoxing::dummy
 35  *                   -XX:CompileCommand=exclude,compiler.eliminateAutobox.TestLongBoxing::foo
 36  *                   -XX:CompileCommand=exclude,compiler.eliminateAutobox.TestLongBoxing::foob
 37  *                   compiler.eliminateAutobox.TestLongBoxing
 38  * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:-EliminateAutoBox
 39  *                   -XX:CompileCommand=exclude,compiler.eliminateAutobox.TestLongBoxing::dummy
 40  *                   -XX:CompileCommand=exclude,compiler.eliminateAutobox.TestLongBoxing::foo
 41  *                   -XX:CompileCommand=exclude,compiler.eliminateAutobox.TestLongBoxing::foob
 42  *                   compiler.eliminateAutobox.TestLongBoxing
 43  */
 44 
 45 package compiler.eliminateAutobox;
 46 
 47 public class TestLongBoxing {
 48 
 49   static final Long ibc = new Long(1);
 50 
 51   //===============================================
 52   // Non-inlined methods to test deoptimization info
< prev index next >