changeset 60371:666e310e158f

8240738: nested comment in JVM.java and other minor formatting errors Reviewed-by: egahlin
author neugens
date Mon, 09 Mar 2020 14:57:41 +0100
parents 8a14919d365d
children 0238badf51bc
files src/jdk.jfr/share/classes/jdk/jfr/internal/JVM.java
diffstat 1 files changed, 8 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jfr/share/classes/jdk/jfr/internal/JVM.java	Mon Mar 09 12:54:53 2020 +0000
+++ b/src/jdk.jfr/share/classes/jdk/jfr/internal/JVM.java	Mon Mar 09 14:57:41 2020 +0100
@@ -106,7 +106,6 @@
     @HotSpotIntrinsicCandidate
     public static native long counterTime();
 
-
     /**
      * Emits native periodic event.
      *
@@ -119,8 +118,6 @@
      */
     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 @@
      *
      * @return a unique class identifier
      */
-   @HotSpotIntrinsicCandidate
+    @HotSpotIntrinsicCandidate
     public static native long getClassId(Class<?> clazz);
 
     // temporary workaround until we solve intrinsics supporting epoch shift tagging
@@ -256,8 +253,6 @@
     public native void setMemorySize(long size) throws IllegalArgumentException;
 
     /**
-
-    /**
      * Set interval for method samples, in milliseconds.
      *
      * Setting interval to 0 turns off the method sampler.
@@ -266,7 +261,7 @@
      */
     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 native void flush();
+
     /**
      * Sets the location of the disk repository, to be used at an emergency
      * dump.
@@ -480,10 +476,10 @@
      */
     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 @@
      * @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 native long getEpochAddress();
 
     public native void uncaughtException(Thread thread, Throwable t);
+
     /**
      * Sets cutoff for event.
      *
@@ -559,7 +557,7 @@
     /**
      * 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 @@
      * @return the handler, may be {@code null}
      */
     public native Object getHandler(Class<? extends jdk.internal.event.Event> eventClass);
-
 }