Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8240738: nested comment in JVM.java and other minor formatting errors
Reviewed-by: egahlin
  • Loading branch information
Mario Torre committed Mar 9, 2020
1 parent a11912c commit e0fec43a9b23e61b2618e6861abf835db76c2491
Showing with 8 additions and 11 deletions.
  1. +8 −11 src/jdk.jfr/share/classes/jdk/jfr/internal/JVM.java
@@ -106,7 +106,6 @@ private JVM() {
@HotSpotIntrinsicCandidate
public static native long counterTime();


/**
* Emits native periodic event.
*
@@ -119,8 +118,6 @@ private JVM() {
*/
public native boolean emitEvent(long eventTypeId, long timestamp, long when);



/**
* Return a list of all classes deriving from {@link jdk.internal.event.Event}
*
@@ -143,7 +140,7 @@ private JVM() {
*
* @return a unique class identifier
*/
@HotSpotIntrinsicCandidate
@HotSpotIntrinsicCandidate
public static native long getClassId(Class<?> clazz);

// temporary workaround until we solve intrinsics supporting epoch shift tagging
@@ -255,8 +252,6 @@ private JVM() {
*/
public native void setMemorySize(long size) throws IllegalArgumentException;

/**
/**
* Set interval for method samples, in milliseconds.
*
@@ -266,7 +261,7 @@ private JVM() {
*/
public native void setMethodSamplingInterval(long type, long intervalMillis);

/**
/**
* Sets the file where data should be written.
*
* Requires that JFR has been started with {@link #createNativeJFR()}
@@ -472,6 +467,7 @@ public boolean hasNativeJFR() {
*
*/
public native void flush();

/**
* Sets the location of the disk repository, to be used at an emergency
* dump.
@@ -480,10 +476,10 @@ public boolean hasNativeJFR() {
*/
public native void setRepositoryLocation(String dirText);

/**
/**
* Access to VM termination support.
*
*@param errorMsg descriptive message to be include in VM termination sequence
* @param errorMsg descriptive message to be include in VM termination sequence
*/
public native void abort(String errorMsg);

@@ -499,6 +495,7 @@ public boolean hasNativeJFR() {
* @return the current epoch of this insertion attempt
*/
public static native boolean addStringConstant(boolean epoch, long id, String s);

/**
* Gets the address of the jboolean epoch.
*
@@ -509,6 +506,7 @@ public boolean hasNativeJFR() {
public native long getEpochAddress();

public native void uncaughtException(Thread thread, Throwable t);

/**
* Sets cutoff for event.
*
@@ -559,7 +557,7 @@ public boolean hasNativeJFR() {
/**
* Get the start time in nanos from the header of the current chunk
*
*@return start time of the recording in nanos, -1 in case of in-memory
* @return start time of the recording in nanos, -1 in case of in-memory
*/
public native long getChunkStartNanos();

@@ -582,5 +580,4 @@ public boolean hasNativeJFR() {
* @return the handler, may be {@code null}
*/
public native Object getHandler(Class<? extends jdk.internal.event.Event> eventClass);

}

0 comments on commit e0fec43

Please sign in to comment.