equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
22 */ |
22 */ |
23 |
23 |
24 /** |
24 /** |
25 * @test |
25 * @test |
26 * @bug 7009359 |
26 * @bug 7009359 |
27 * @summary HS with -XX:+AggressiveOpts optimize new StringBuffer(null) so it does not throw NPE as expected |
27 * @summary HS optimizes new StringBuffer(null) so it does not throw NPE as expected |
28 * |
28 * |
29 * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:+OptimizeStringConcat |
29 * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:+OptimizeStringConcat |
30 * -XX:CompileCommand=dontinline,compiler.c2.Test7009359::stringmakerBUG |
30 * -XX:CompileCommand=dontinline,compiler.c2.Test7009359::stringmakerBUG |
31 * compiler.c2.Test7009359 |
31 * compiler.c2.Test7009359 |
32 */ |
32 */ |
33 |
33 |
34 package compiler.c2; |
34 package compiler.c2; |
35 |
35 |
36 public class Test7009359 { |
36 public class Test7009359 { |