JDK 11 jdk.hotspot.agent.jmod - Hotspot Agent Module

JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module.

JDK 11 Hotspot Agent module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.hotspot.agent.jmod.

JDK 11 Hotspot Agent module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.

JDK 11 Hotspot Agent module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.hotspot.agent.

You can click and view the content of each source code file in the list below.

✍: FYIcenter

sun/jvm/hotspot/debugger/aarch64/AARCH64ThreadContext.java

/*
 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
 * Copyright (c) 2015, Red Hat Inc.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package sun.jvm.hotspot.debugger.aarch64;

import java.lang.annotation.Native;

import sun.jvm.hotspot.debugger.*;
import sun.jvm.hotspot.debugger.cdbg.*;

/** Specifies the thread context on aarch64 platforms; only a sub-portion
 * of the context is guaranteed to be present on all operating
 * systems. */

public abstract class AARCH64ThreadContext implements ThreadContext {
    // Taken from /usr/include/asm/sigcontext.h on Linux/AARCH64.

    //  /*
    //   * Signal context structure - contains all info to do with the state
    //   * before the signal handler was invoked.
    //   */
    // struct sigcontext {
    //         __u64 fault_address;
    //         /* AArch64 registers */
    //          __u64 regs[31];
    //          __u64 sp;
    //          __u64 pc;
    //          __u64 pstate;
    //          /* 4K reserved for FP/SIMD state and future expansion */
    //          __u8 __reserved[4096] __attribute__((__aligned__(16)));
    //  };

    // NOTE: the indices for the various registers must be maintained as
    // listed across various operating systems. However, only a small
    // subset of the registers' values are guaranteed to be present (and
    // must be present for the SA's stack walking to work)

    // One instance of the Native annotation is enough to trigger header generation
    // for this file.
    @Native
    public static final int R0 = 0;
    public static final int R1 = 1;
    public static final int R2 = 2;
    public static final int R3 = 3;
    public static final int R4 = 4;
    public static final int R5 = 5;
    public static final int R6 = 6;
    public static final int R7 = 7;
    public static final int R8 = 8;
    public static final int R9 = 9;
    public static final int R10 = 10;
    public static final int R11 = 11;
    public static final int R12 = 12;
    public static final int R13 = 13;
    public static final int R14 = 14;
    public static final int R15 = 15;
    public static final int R16 = 16;
    public static final int R17 = 17;
    public static final int R18 = 18;
    public static final int R19 = 19;
    public static final int R20 = 20;
    public static final int R21 = 21;
    public static final int R22 = 22;
    public static final int R23 = 23;
    public static final int R24 = 24;
    public static final int R25 = 25;
    public static final int R26 = 26;
    public static final int R27 = 27;
    public static final int R28 = 28;
    public static final int FP = 29;
    public static final int LR = 30;
    public static final int SP = 31;
    public static final int PC = 32;
    public static final int PSTATE = 33;

    public static final int NPRGREG = 34;

    private long[] data;

    public AARCH64ThreadContext() {
        data = new long[NPRGREG];
    }

    public int getNumRegisters() {
        return NPRGREG;
    }

    public String getRegisterName(int index) {
        switch (index) {
        case LR: return "lr";
        case SP: return "sp";
        case PC: return "pc";
        default:
            return "r" + index;
        }
    }

    public void setRegister(int index, long value) {
        data[index] = value;
    }

    public long getRegister(int index) {
        return data[index];
    }

    public CFrame getTopFrame(Debugger dbg) {
        return null;
    }

    /** This can't be implemented in this class since we would have to
     * tie the implementation to, for example, the debugging system */
    public abstract void setRegisterAsAddress(int index, Address value);

    /** This can't be implemented in this class since we would have to
     * tie the implementation to, for example, the debugging system */
    public abstract Address getRegisterAsAddress(int index);
}

sun/jvm/hotspot/debugger/aarch64/AARCH64ThreadContext.java

 

⇒ JDK 11 jdk.httpserver.jmod - HTTP Server Module

⇐ JDK 11 jdk.editpad.jmod - Edit Pad Module

⇑ Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2020-02-29, 70449👍, 0💬