diff --git a/reactor/Core/src/jetbrains/mps/logic/reactor/core/internal/MatchJournalImpl.kt b/reactor/Core/src/jetbrains/mps/logic/reactor/core/internal/MatchJournalImpl.kt index b148307e..952b4808 100644 --- a/reactor/Core/src/jetbrains/mps/logic/reactor/core/internal/MatchJournalImpl.kt +++ b/reactor/Core/src/jetbrains/mps/logic/reactor/core/internal/MatchJournalImpl.kt @@ -47,13 +47,13 @@ internal open class MatchJournalImpl( if (view == null) { nextChunkId = 0 val initChunk = MatchChunk(nextChunkId++, InitRuleMatch) - hist = IteratorMutableList(LinkedList().apply { add(initChunk) }) + hist = IteratorMutableList(ArrayList().apply { add(initChunk) }) } else { // assert that initial chunk is present with (view.chunks.first()) { assert(this is MatchChunk && match is InitRuleMatch) } - hist = IteratorMutableList(LinkedList(view.chunks as List)) + hist = IteratorMutableList(ArrayList(view.chunks as List)) nextChunkId = view.nextChunkId } }