Skip to content

Commit

Permalink
update: warnings for the new and the legacy memory manager pages (#3761)
Browse files Browse the repository at this point in the history
  • Loading branch information
danil-pavlov authored Sep 1, 2023
1 parent cd33fb0 commit 4f0058a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
> This page describes the features of the legacy memory manager. Check out [Kotlin/Native memory management](native-memory-manager.md)
> to learn about the new memory manager, which has been enabled by default since Kotlin 1.7.20.
>
{type="note"}
> For more information on the concurrent programming in Kotlin, see the [Coroutines guide](coroutines-guide.md).
>
{type="warning"}

When working with mobile platforms, you may need to write multithreaded code that runs in parallel. For this,
you can use the [standard](#coroutines) `kotlinx.coroutines` library or its [multithreaded version](#multithreaded-coroutines)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
> This page describes the features of the legacy memory manager. Check out [Kotlin/Native memory management](native-memory-manager.md)
> to learn about the new memory manager, which has been enabled by default since Kotlin 1.7.20.
>
{type="note"}
> For more information on the concurrent programming in Kotlin, see the [Coroutines guide](coroutines-guide.md).
>
{type="warning"}

When you extend your development experience from Android to Kotlin Multiplatform for mobile, you will encounter a different state
and concurrency model for iOS. This is a Kotlin/Native model that compiles Kotlin code to native binaries that can run without a virtual machine, for example on iOS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
> This page describes the features of the legacy memory manager. Check out [Kotlin/Native memory management](native-memory-manager.md)
> to learn about the new memory manager, which has been enabled by default since Kotlin 1.7.20.
>
{type="note"}
> For more information on the concurrent programming in Kotlin, see the [Coroutines guide](coroutines-guide.md).
>
{type="warning"}

When it comes to working with iOS, [Kotlin/Native's state and concurrency model](multiplatform-mobile-concurrency-overview.md) has [two simple rules](multiplatform-mobile-concurrency-overview.md#rules-for-state-sharing).

Expand Down
4 changes: 3 additions & 1 deletion docs/topics/native/native-immutability.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
> This page describes the features of the legacy memory manager. Check out [Kotlin/Native memory management](native-memory-manager.md)
> to learn about the new memory manager, which has been enabled by default since Kotlin 1.7.20.
>
{type="note"}
> For more information on the concurrent programming in Kotlin, see the [Coroutines guide](coroutines-guide.md).
>
{type="warning"}

Kotlin/Native implements strict mutability checks, ensuring
the important invariant that the object is either immutable or
Expand Down
2 changes: 1 addition & 1 deletion docs/topics/native/native-ios-integration.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[//]: # (title: iOS integration)

> This page describes the new memory manager enabled by default since Kotlin 1.7.20. See our [migration guide](native-migration-guide.md)
> to move your projects from the legacy memory manager.
> to move your projects from the legacy memory manager that will be removed in Kotlin 1.9.20.
>
{type="note"}

Expand Down
4 changes: 2 additions & 2 deletions docs/topics/native/native-memory-manager.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[//]: # (title: Kotlin/Native memory management)

> This page describes features of the new memory manager enabled by default since Kotlin 1.7.20.
> See our [migration guide](native-migration-guide.md) to move your projects from the legacy memory manager.
> This page describes features of the new memory manager enabled by default since Kotlin 1.7.20. See our [migration guide](native-migration-guide.md)
> to move your projects from the legacy memory that will be removed in Kotlin 1.9.20.
>
{type="note"}

Expand Down

0 comments on commit 4f0058a

Please sign in to comment.