diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-10-05 08:29:44 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 08:29:44 +0530 |
commit | 3ddd06679f1e666716391450adaa687db33332c7 (patch) | |
tree | 23c766dda568b513b3940200c9f7bcbc214591fa /autofill-parser | |
parent | 8a4316067396e6a0a5490e727197cf843d3f4ec6 (diff) |
Resolve lock contention from lazy delegates (#1135)
Diffstat (limited to 'autofill-parser')
-rw-r--r-- | autofill-parser/src/main/java/mozilla/components/lib/publicsuffixlist/PublicSuffixList.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autofill-parser/src/main/java/mozilla/components/lib/publicsuffixlist/PublicSuffixList.kt b/autofill-parser/src/main/java/mozilla/components/lib/publicsuffixlist/PublicSuffixList.kt index d4d1c1af..f1cdb12a 100644 --- a/autofill-parser/src/main/java/mozilla/components/lib/publicsuffixlist/PublicSuffixList.kt +++ b/autofill-parser/src/main/java/mozilla/components/lib/publicsuffixlist/PublicSuffixList.kt @@ -32,7 +32,7 @@ class PublicSuffixList( private val scope: CoroutineScope = CoroutineScope(dispatcher) ) { - private val data: PublicSuffixListData by lazy { PublicSuffixListLoader.load(context) } + private val data: PublicSuffixListData by lazy(LazyThreadSafetyMode.PUBLICATION) { PublicSuffixListLoader.load(context) } /** * Prefetch the public suffix list from disk so that it is available in memory. |