Skip to content

Commit 5ef879d

Browse files
committed
Merge pull request graalvm#6 in G/simpletool from st_update_vm-19.3.1 to master
* commit '3d18c287956b16d4d4a958c8c1237479aade191e': update 19.3.1
2 parents 9afda2f + 3d18c28 commit 5ef879d

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ os:
55
language: java
66

77
env:
8-
- GRAALVM_VERSION="19.3.0" GRAALVM_JAVA_VERSION="8"
9-
- GRAALVM_VERSION="19.3.0" GRAALVM_JAVA_VERSION="11"
8+
- GRAALVM_VERSION="19.3.1" GRAALVM_JAVA_VERSION="8"
9+
- GRAALVM_VERSION="19.3.1" GRAALVM_JAVA_VERSION="11"
1010

1111
install:
1212
- cd .. && mv simpletool "simple tool" && cd "simple tool"

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
local graalvm = {
1313
downloads+: {
14-
JAVA_HOME: { name: 'graalvm', version: '19.3.0', platformspecific: true },
14+
JAVA_HOME: { name: 'graalvm', version: '19.3.1', platformspecific: true },
1515
},
1616
},
1717

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
<groupId>com.oracle</groupId>
66
<artifactId>simpletool</artifactId>
7-
<version>19.3.0</version>
7+
<version>19.3.1</version>
88

99
<name>simpletool</name>
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1313
<maven.compiler.source>1.8</maven.compiler.source>
1414
<maven.compiler.target>1.8</maven.compiler.target>
15-
<graalvm.version>19.3.0</graalvm.version>
15+
<graalvm.version>19.3.1</graalvm.version>
1616
</properties>
1717
<profiles>
1818
<profile>

simpletool

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ shift
1515

1616
"$JAVA_HOME/bin/$LAUNCHER" \
1717
--jvm \
18-
--vm.Dtruffle.class.path.append=target/simpletool-19.3.0.jar \
18+
--vm.Dtruffle.class.path.append=target/simpletool-19.3.1.jar \
1919
--simple-code-coverage \
2020
"$@"

src/main/java/com/oracle/truffle/st/Coverage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ void addLoaded(SourceSection sourceSection) {
6262
}
6363

6464
private Set<SourceSection> nonCoveredSections() {
65-
final HashSet<SourceSection> nonCovered = new HashSet<>(loaded);
65+
final HashSet<SourceSection> nonCovered = new HashSet<>();
66+
nonCovered.addAll(loaded);
6667
nonCovered.removeAll(covered);
6768
return nonCovered;
6869
}

src/main/java/com/oracle/truffle/st/SimpleCoverageInstrument.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
* Example for simple version of an expression coverage instrument.
6868
*
6969
* The instrument {@link #coverageMap keeps track} of all loaded {@link SourceSection}s and all
70-
* covered (i.e. executed) {@link SourceSection}s for each {@link Source}. At the end of the
70+
* coverd (i.e. executed) {@link SourceSection}s for each {@link Source}. At the end of the
7171
* execution this information can be used to calculate coverage.
7272
*
7373
* The instrument is registered with the Truffle framework using the {@link Registration}
@@ -77,7 +77,7 @@
7777
* In this case the instrument itself is exported as a service and used in the
7878
* SimpleCoverageInstrumentTest.
7979
*
80-
* NOTE: For the registration annotation to work the truffle dsl processor must be used (i.e. Must
80+
* NOTE: Fot the registration annotation to work the truffle dsl processor must be used (i.e. Must
8181
* be a dependency. This is so in this maven project, as can be seen in the pom file.
8282
*/
8383
@Registration(id = SimpleCoverageInstrument.ID, name = "Simple Code Coverage", version = "0.1", services = SimpleCoverageInstrument.class)
@@ -176,7 +176,7 @@ private void enable(final Env env) {
176176
/**
177177
* Ensures that the coverage info gathered by the instrument is printed at the end of execution.
178178
*
179-
* @param env The environment, used to get the {@link Instrumenter}
179+
* @param env
180180
*/
181181
@Override
182182
protected void onDispose(Env env) {
@@ -191,7 +191,7 @@ protected void onDispose(Env env) {
191191
* The printing is one the the {@link Env#out output stream} specified by the {@link Env
192192
* enviroment}.
193193
*
194-
* @param env The environment, used to get the {@link Instrumenter}
194+
* @param env
195195
*/
196196
private synchronized void printResults(final Env env) {
197197
final PrintStream printStream = new PrintStream(env.out());
@@ -223,7 +223,7 @@ private static char getCoverageCharacter(Set<Integer> nonCoveredLineNumbers, Set
223223
}
224224

225225
/**
226-
* @param source The source of interest
226+
* @param source
227227
* @return A sorted list of line numbers for not-yet-covered lines of source code in the given
228228
* {@link Source}
229229
*/

0 commit comments

Comments
 (0)