Thu, 27 May 2010 19:08:38 -0700
6941466: Oracle rebranding changes for Hotspot repositories
Summary: Change all the Sun copyrights to Oracle copyright
Reviewed-by: ohair
kvn@598 | 1 | /* |
trims@1907 | 2 | * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. |
kvn@688 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
kvn@598 | 4 | * |
kvn@688 | 5 | * This code is free software; you can redistribute it and/or modify it |
kvn@688 | 6 | * under the terms of the GNU General Public License version 2 only, as |
kvn@688 | 7 | * published by the Free Software Foundation. |
kvn@598 | 8 | * |
kvn@688 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
kvn@688 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
kvn@688 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
kvn@688 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
kvn@688 | 13 | * accompanied this code). |
kvn@598 | 14 | * |
kvn@688 | 15 | * You should have received a copy of the GNU General Public License version |
kvn@688 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
kvn@688 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
kvn@598 | 18 | * |
trims@1907 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
trims@1907 | 20 | * or visit www.oracle.com if you need additional information or have any |
trims@1907 | 21 | * questions. |
kvn@598 | 22 | */ |
kvn@598 | 23 | |
kvn@598 | 24 | /* |
kvn@598 | 25 | * @test |
kvn@598 | 26 | * @bug 6695810 |
kvn@598 | 27 | * @summary null oop passed to encode_heap_oop_not_null |
kvn@598 | 28 | * @run main/othervm -Xbatch Test |
kvn@598 | 29 | */ |
kvn@598 | 30 | |
kvn@598 | 31 | public class Test { |
kvn@598 | 32 | Test _t; |
kvn@598 | 33 | |
kvn@598 | 34 | static void test(Test t1, Test t2) { |
kvn@598 | 35 | if (t2 != null) |
kvn@598 | 36 | t1._t = t2; |
kvn@598 | 37 | |
kvn@598 | 38 | if (t2 != null) |
kvn@598 | 39 | t1._t = t2; |
kvn@598 | 40 | } |
kvn@598 | 41 | |
kvn@598 | 42 | public static void main(String[] args) { |
kvn@598 | 43 | Test t = new Test(); |
kvn@598 | 44 | for (int i = 0; i < 50; i++) { |
kvn@598 | 45 | for (int j = 0; j < 100; j++) { |
kvn@598 | 46 | test(t, t); |
kvn@598 | 47 | } |
kvn@598 | 48 | test(t, null); |
kvn@598 | 49 | } |
kvn@598 | 50 | for (int i = 0; i < 10000; i++) { |
kvn@598 | 51 | test(t, t); |
kvn@598 | 52 | } |
kvn@598 | 53 | test(t, null); |
kvn@598 | 54 | } |
kvn@598 | 55 | } |