9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 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 /** 26 * @test 27 * @bug 6891750 28 * @summary deopt blob kills values in O5 29 * 30 * @run main Test6891750 31 */ 32 33 abstract class Base6891750 extends Thread { 34 abstract public long m(); 35 } 36 class Other6891750 extends Base6891750 { 37 public long m() { 38 return 0; 39 } 40 } 41 42 public class Test6891750 extends Base6891750 { 43 Base6891750 d; 44 volatile long value = 9; 45 46 static int limit = 400000; 47 48 Test6891750() { 49 d = this; 50 51 } | 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 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 /** 26 * @test 27 * @bug 6891750 28 * @summary deopt blob kills values in O5 29 * @run main compiler.runtime.cr6891750.Test6891750 30 */ 31 32 package compiler.runtime.cr6891750; 33 34 abstract class Base6891750 extends Thread { 35 abstract public long m(); 36 } 37 class Other6891750 extends Base6891750 { 38 public long m() { 39 return 0; 40 } 41 } 42 43 public class Test6891750 extends Base6891750 { 44 Base6891750 d; 45 volatile long value = 9; 46 47 static int limit = 400000; 48 49 Test6891750() { 50 d = this; 51 52 } |