changeset 22262:0df2f06977fa

Truffle/Instrumentation: the new Instrument class is now public; minor Javadoc
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Mon, 28 Sep 2015 20:18:30 -0700
parents b73205fe7cf3
children 4d35b02b3192
files truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Instrument.java truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Probe.java
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Instrument.java	Mon Sep 28 20:11:19 2015 -0700
+++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Instrument.java	Mon Sep 28 20:18:30 2015 -0700
@@ -35,15 +35,15 @@
  * HREF="https://wiki.openjdk.java.net/display/Graal/Listening+for+Execution+Events" >https://
  * wiki.openjdk.java.net/display/Graal/Listening+for+Execution+Events</a>
  *
- * @See Instrumenter
+ * @see Instrumenter
  */
-abstract class Instrument {
+public abstract class Instrument {
 
     protected Instrument() {
     }
 
     /**
-     * Removes this from its source of execution events and renders itself Instrument inert.
+     * Detaches this from its source of execution events and renders itself unusable.
      *
      * @throws IllegalStateException if this has already been disposed
      */
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Probe.java	Mon Sep 28 20:11:19 2015 -0700
+++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Probe.java	Mon Sep 28 20:18:30 2015 -0700
@@ -44,9 +44,9 @@
 /**
  * A <em>binding</em> between:
  * <ol>
- * <li>A <em>guest language program location</em> in an executing Truffle AST (corresponding to a
+ * <li>a <em>guest language program location</em> in an executing Truffle AST (corresponding to a
  * {@link SourceSection}), and</li>
- * <li>A dynamically managed collection of <em>attached</em> {@linkplain Instrument Instruments}
+ * <li>a dynamically managed collection of <em>attached</em> {@linkplain Instrument Instruments}
  * that receive event notifications on behalf of external clients.</li>
  * </ol>
  * <strong>Note</strong>:The relationship for {@link ProbeInstrument} must be with an AST