test/hotspot/jtreg/runtime/CheckUnhandledOops/TestVerifyOops.java
author thartmann
Mon, 23 Sep 2019 14:30:31 +0200
changeset 58267 acc7ea6bf0b4
child 59014 36fde8064316
permissions -rw-r--r--
8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment? Summary: Offset method should only be called for comments. Reviewed-by: roland, dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
58267
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
     1
/*
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
     2
 * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
     4
 *
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
     7
 * published by the Free Software Foundation.
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
     8
 *
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    13
 * accompanied this code).
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    14
 *
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    18
 *
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    21
 * questions.
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    22
 */
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    23
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    24
/*
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    25
 * @test
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    26
 * @bug 8231058
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    27
 * @requires vm.debug & (os.arch != "sparc") & (os.arch != "sparcv9")
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    28
 * @run main/othervm -XX:+VerifyOops TestVerifyOops
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    29
 */
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    30
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    31
public class TestVerifyOops {
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    32
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    33
    public static void main(String[] args) {
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    34
        System.out.println("Test passed");
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    35
    }
acc7ea6bf0b4 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
thartmann
parents:
diff changeset
    36
}