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/utilities/Bits.java

/*
 * Copyright (c) 2001, 2004, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package sun.jvm.hotspot.utilities;

/** Bit manipulation routines */

public class Bits {
  public static final int AllBits = ~0;
  public static final int NoBits  = 0;
  public static final int OneBit  = 1;

  public static final int BitsPerByte =  8;
  public static final int BitsPerInt  = 32;

  public static final int LogBytesPerInt  = 2;
  public static final int LogBytesPerLong = 3;


  public static int setBits(int x, int m) {
    return x | m;
  }

  public static int clearBits(int x, int m) {
    return x & ~m;
  }

  public static int nthBit(int n) {
    return (n > 32) ? 0 : (OneBit << n);
  }

  public static int setNthBit(int x, int n) {
    return setBits(x, nthBit(n));
  }

  public static int clearNthBit(int x, int n) {
    return clearBits(x, nthBit(n));
  }

  public static boolean isSetNthBit(int word, int n) {
    return maskBits(word, nthBit(n)) != NoBits;
  }

  public static int rightNBits(int n) {
    return (nthBit(n) - 1);
  }

  public static int maskBits(int x, int m) {
    return x & m;
  }

  public static long maskBitsLong(long x, long m) {
    return x & m;
  }

  /** Returns integer round-up to the nearest multiple of s (s must be
      a power of two) */
  public static int roundTo(int x, int s) {
    int m = s - 1;
    return maskBits(x + m, ~m);
  }
}

sun/jvm/hotspot/utilities/Bits.java

 

Or download all of them as a single archive file:

File name: jdk.hotspot.agent-11.0.1-src.zip
File size: 1243786 bytes
Release date: 2018-11-04
Download 

 

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, 131805👍, 0💬