Skip to content

Commit 43604bd

Browse files
committed
Tweak LockFreeLinkedListLongStressTest so it does not run out of memory under -DstressTest
1 parent 5785720 commit 43604bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/src/test/kotlin/kotlinx/coroutines/experimental/internal/LockFreeLinkedListLongStressTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class LockFreeLinkedListLongStressTest : TestBase() {
3333
val list = LockFreeLinkedListHead()
3434

3535
val threads = mutableListOf<Thread>()
36-
val nAdded = 10_000_000 * stressTestMultiplier
36+
val nAdded = 10_000_000 // should not stress more, because that'll run out of memory
3737
val nAddThreads = 4 // must be power of 2 (!!!)
3838
val nRemoveThreads = 6
3939
val removeProbability = 0.2

0 commit comments

Comments
 (0)