Skip to content

Commit 562bf20

Browse files
committed
Fix incorrect ProGuard rules that allowed shrinking volatile felds
Fixes #1564
1 parent 1176267 commit 562bf20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kotlinx-coroutines-core/jvm/resources/META-INF/proguard/coroutines.pro

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}
44

55
# Most of volatile fields are updated with AFU and should not be mangled
6-
-keepclassmembernames class kotlinx.** {
6+
-keepclassmembers class kotlinx.** {
77
volatile <fields>;
88
}
99

1010
# Same story for the standard library's SafeContinuation that also uses AtomicReferenceFieldUpdater
11-
-keepclassmembernames class kotlin.coroutines.SafeContinuation {
11+
-keepclassmembers class kotlin.coroutines.SafeContinuation {
1212
volatile <fields>;
1313
}
1414

0 commit comments

Comments
 (0)