Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jdi/Field/isVolatile/isvol001a.java
41160 views
/*1* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/222324package nsk.jdi.Field.isVolatile;2526import nsk.share.*;27import nsk.share.jpda.*;28import nsk.share.jdi.*;293031public class isvol001a {32boolean z0, z1[]={z0}, z2[][]={z1};33byte b0, b1[]={b0}, b2[][]={b1};34char c0, c1[]={c0}, c2[][]={c1};35double d0, d1[]={d0}, d2[][]={d1};36float f0, f1[]={f0}, f2[][]={f1};37int i0, i1[]={i0}, i2[][]={i1};38long l0, l1[]={l0}, l2[][]={l1};3940volatile boolean z0V, z1V[]={z0V}, z2V[][]={z1V};41volatile byte b0V, b1V[]={b0V}, b2V[][]={b1V};42volatile char c0V, c1V[]={c0V}, c2V[][]={c1V};43volatile double d0V, d1V[]={d0V}, d2V[][]={d1V};44volatile float f0V, f1V[]={f0V}, f2V[][]={f1V};45volatile int i0V, i1V[]={i0V}, i2V[][]={i1V};46volatile long l0V, l1V[]={l0V}, l2V[][]={l1V};4748static long lS0, lS1[]={lS0}, lS2[][]={lS1};49private long lP0, lP1[]={lP0}, lP2[][]={lP1};50public long lU0, lU1[]={lU0}, lU2[][]={lU1};51protected long lR0, lR1[]={lR0}, lR2[][]={lR1};52transient long lT0, lT1[]={lT0}, lT2[][]={lT1};53final long lF0 = 999, lF1[]={lF0}, lF2[][]={lF1};5455volatile static long lS0V, lS1V[]={lS0V}, lS2V[][]={lS1V};56volatile private long lP0V, lP1V[]={lP0V}, lP2V[][]={lP1V};57volatile public long lU0V, lU1V[]={lU0V}, lU2V[][]={lU1V};58volatile protected long lR0V, lR1V[]={lR0V}, lR2V[][]={lR1V};59volatile transient long lT0V, lT1V[]={lT0V}, lT2V[][]={lT1V};6061class Class {}62Class X0, X1[]={X0}, X2[][]={X1};63Boolean Z0, Z1[]={Z0}, Z2[][]={Z1};64Byte B0, B1[]={B0}, B2[][]={B1};65Character C0, C1[]={C0}, C2[][]={C1};66Double D0, D1[]={D0}, D2[][]={D1};67Float F0, F1[]={F0}, F2[][]={F1};68Integer I0, I1[]={I0}, I2[][]={I1};69Long L0, L1[]={L0}, L2[][]={L1};70String S0, S1[]={S0}, S2[][]={S1};71Object O0, O1[]={O0}, O2[][]={O1};7273volatile Class X0V, X1V[]={X0V}, X2V[][]={X1V};74volatile Boolean Z0V, Z1V[]={Z0V}, Z2V[][]={Z1V};75volatile Byte B0V, B1V[]={B0V}, B2V[][]={B1V};76volatile Character C0V, C1V[]={C0V}, C2V[][]={C1V};77volatile Double D0V, D1V[]={D0V}, D2V[][]={D1V};78volatile Float F0V, F1V[]={F0V}, F2V[][]={F1V};79volatile Integer I0V, I1V[]={I0V}, I2V[][]={I1V};80volatile Long L0V, L1V[]={L0V}, L2V[][]={L1V};81volatile String S0V, S1V[]={S0V}, S2V[][]={S1V};82volatile Object O0V, O1V[]={O0V}, O2V[][]={O1V};8384static Long LS0, LS1[]={LS0}, LS2[][]={LS1};85private Long LP0, LP1[]={LP0}, LP2[][]={LP1};86public Long LU0, LU1[]={LU0}, LU2[][]={LU1};87protected Long LR0, LR1[]={LR0}, LR2[][]={LR1};88transient Long LT0, LT1[]={LT0}, LT2[][]={LT1};89final Long LF0 = Long.valueOf(999), LF1[]={LF0}, LF2[][]={LF1};9091volatile static Long LS0V, LS1V[]={LS0V}, LS2V[][]={LS1V};92volatile private Long LP0V, LP1V[]={LP0V}, LP2V[][]={LP1V};93volatile public Long LU0V, LU1V[]={LU0V}, LU2V[][]={LU1V};94volatile protected Long LR0V, LR1V[]={LR0V}, LR2V[][]={LR1V};95volatile transient Long LT0V, LT1V[]={LT0V}, LT2V[][]={LT1V};9697interface Inter {}98Inter E0, E1[]={E0}, E2[][]={E1};99100volatile Inter E0V, E1V[]={E0V}, E2V[][]={E1V};101102static Inter ES0, ES1[]={ES0}, ES2[][]={ES1};103private Inter EP0, EP1[]={EP0}, EP2[][]={EP1};104public Inter EU0, EU1[]={EU0}, EU2[][]={EU1};105protected Inter ER0, ER1[]={ER0}, ER2[][]={ER1};106transient Inter ET0, ET1[]={ET0}, ET2[][]={ET1};107final Inter EF0 = null, EF1[]={EF0}, EF2[][]={EF1};108109volatile static Inter ES0V, ES1V[]={ES0V}, ES2V[][]={ES1V};110volatile private Inter EP0V, EP1V[]={EP0V}, EP2V[][]={EP1V};111volatile public Inter EU0V, EU1V[]={EU0V}, EU2V[][]={EU1V};112volatile protected Inter ER0V, ER1V[]={ER0V}, ER2V[][]={ER1V};113volatile transient Inter ET0V, ET1V[]={ET0V}, ET2V[][]={ET1V};114115public static void main (String argv[]) {116ArgumentHandler argHandler = new ArgumentHandler(argv);117Log log = new Log(System.err, argHandler);118IOPipe pipe = argHandler.createDebugeeIOPipe(log);119120log.display("DEBUGEE> debugee started.");121pipe.println("ready");122String instruction = pipe.readln();123if (instruction.equals("quit")) {124log.display("DEBUGEE> \"quit\" signal recieved.");125log.display("DEBUGEE> completed succesfully.");126System.exit(95);127}128log.complain("DEBUGEE FAILURE> unexpected signal "129+ "(no \"quit\") - " + instruction);130log.complain("DEBUGEE FAILURE> TEST FAILED");131System.exit(97);132}133}134135136