File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import scala.collection.concurrent.TrieMap
77object Invoker {
88
99 private val threadFile = new ThreadLocal [FileWriter ]
10- private val invoked = TrieMap .empty[Int , Any ]
10+ private val ids = TrieMap .empty[Int , Any ]
1111
1212 /**
1313 * We record that the given id has been invoked by appending its id to the coverage
@@ -30,7 +30,7 @@ object Invoker {
3030 // times since for coverage we only care about 1 or more, (it just slows things down to
3131 // do it more than once), anything we can do to help is good. This helps especially with code
3232 // that is executed many times quickly, eg tight loops.
33- if (! invoked .contains(id)) {
33+ if (! ids .contains(id)) {
3434 // Each thread writes to a separate measurement file, to reduce contention
3535 // and because file appends via FileWriter are not atomic on Windows.
3636 var writer = threadFile.get()
@@ -40,7 +40,7 @@ object Invoker {
4040 threadFile.set(writer)
4141 }
4242 writer.append(id.toString + '\n ' ).flush()
43- invoked .put(id, ())
43+ ids .put(id, ())
4444 }
4545 }
4646}
You can’t perform that action at this time.
0 commit comments