Skip to content

Commit 8911400

Browse files
committed
Remove FIXME for -Ycheck-reentrant, was reported as seperate issue
1 parent cac0803 commit 8911400

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

compiler/src/dotty/tools/dotc/profile/FileUtils.scala

+3-6
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,9 @@ object FileUtils {
7373

7474
}
7575

76-
// FIXME: Potentially there is a false-positive error under -Ycheck-reentrant?
77-
// [error] possible data race involving globally reachable variable isReadOnly in class CharBuffer: Boolean
78-
// [error] possible data race involving globally reachable variable address in class Buffer: Long
79-
@sharable private object AsyncBufferedWriter {
80-
private val Close = CharBuffer.allocate(0)
81-
private val Flush = CharBuffer.allocate(0)
76+
private object AsyncBufferedWriter {
77+
@sharable private val Close = CharBuffer.allocate(0)
78+
@sharable private val Flush = CharBuffer.allocate(0)
8279
}
8380
private class AsyncBufferedWriter(val underlying: Writer, bufferSize : Int = 4096) extends LineWriter {
8481
private var current: CharBuffer = allocate

0 commit comments

Comments
 (0)