Skip to content

Commit

Permalink
Fix incorrect ProGuard rules that allowed shrinking volatile felds
Browse files Browse the repository at this point in the history
Fixes #1564
  • Loading branch information
dkhalanskyjb committed Dec 10, 2020
1 parent 1176267 commit 562bf20
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -3,12 +3,12 @@
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}

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

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

Expand Down

0 comments on commit 562bf20

Please sign in to comment.