Alexander Shabalin
f058ee21b0
[K/N] Do not hold GC locks when finalizer thread is starting
...
Merge-request: KT-MR-9799
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com >
2023-04-26 08:29:07 +00:00
Alexander Shabalin
82f94015f1
[K/N] Dispose ObjC objects from main thread on main thread. ^KT-56402
...
Merge-request: KT-MR-9515
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com >
2023-04-26 07:35:44 +00:00
mvicsokolova
75b4469757
[K/N] Stabilization of Atomics API
...
`AtomicInt`, `AtomicLong`, `AtomicReference` and `AtomicNativePtr` classes were moved to `kotlin.concurrent` package. The corresponding classes from `kotlin.native.concurrent` were deprecated with warning since Kotlin 1.9.
In order to prepare for further commonization of Atomics API the following changes were made:
* `kotlin.concurrent.AtomicInt`:
* `increment(): Unit` and `decrement(): Unit` methods were deprecated with error
* New methods were added: `incrementAndGet(): Int` , `decrementAndGet(): Int`, `getAndIncrement(): Int`, `getAndDecrement(): Int`, `getAndSet(newValue: Int): Int`
* `kotlin.concurrent.AtomicLong`:
* `increment(): Unit` and `decrement(): Unit` methods were deprecated with error
* New methods were added: `incrementAndGet(): Long`, `decrementAndGet(): Long`, `getAndIncrement(): Long`, `getAndDecrement(): Long`, `getAndSet(newValue: Long): Long`
* Deprecated `AtomicLong()` constructor with default parameter value
* For all atomic classes `compareAndSwap` method was renamed to `compareAndExchange`
See KT-58074 for more details.
Merge-request: KT-MR-9272
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com >
2023-04-25 16:55:42 +00:00
Abduqodiri Qurbonzoda
52cbad2da2
[K/N] Hide Primitive.equals(Primitive) functions #KT-57344
...
As a part of efforts to stabilize Native stdlib.
Merge-request: KT-MR-9692
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-04-25 14:56:29 +00:00
Abduqodiri Qurbonzoda
ad5593e68a
[K/N] Mark Platform-related API with ExperimentalNativeApi
...
As part of stabilizing Native stdlib.
2023-04-24 13:29:02 +00:00
Ivan Kylchik
2e836494f5
Rewrite primitives' generation using simple DSL
2023-04-20 08:18:58 +00:00
Ivan Kylchik
fcd3fe4fe3
[Native] Mark necessary methods that must be evaluated at compile-time
...
It includes methods and properties from Boolean, Char, String,
Enum and KCallable.
2023-04-20 08:18:57 +00:00
Ivan Kylchik
07ca981632
Unify generation of Primitives files for all backends
2023-04-20 08:18:57 +00:00
Abduqodiri Qurbonzoda
5407ac1c72
[K/N] Mark UnhandledExceptionHook-related API with ExperimentalNativeApi
...
Instead of ExperimentalStdlibApi
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-19 20:36:31 +00:00
Abduqodiri Qurbonzoda
da0cc2ea4d
[K/N] Deprecate Char.MIN_RADIX and MAX_RADIX constants
...
As a part of efforts to stabilize Native stdlib.
2023-04-19 20:33:33 +00:00
Abduqodiri Qurbonzoda
b25f3be81b
[K/N] Experimental Char code point constants and functions
...
Internalize WASM Char code point functions.
As a part of efforts to stabilize Native stdlib.
2023-04-19 20:33:33 +00:00
Abduqodiri Qurbonzoda
954e11c265
[K/N] Mark MutableList.replaceAll with ExperimentalNativeApi
...
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-19 20:32:55 +00:00
Abduqodiri Qurbonzoda
e20b1239fe
[K/N] Remove Char.isIdentifierIgnorable() function
...
As a part of efforts to stabilize K/N stdlib.
2023-04-19 20:20:43 +00:00
Abduqodiri Qurbonzoda
7eba68e62b
[K/N] Commonize String.regionMatches function
...
As a part of efforts to stabilize K/N stdlib.
2023-04-19 20:20:42 +00:00
Abduqodiri Qurbonzoda
b6c2ce2dc8
[K/N] Make assert functions experimental with ExperimentalNativeApi
2023-04-19 19:02:14 +00:00
Abduqodiri Qurbonzoda
245ef256bd
[K/N] Mark Throwable.getStackTrace[Addresses] with ExperimentalNativeApi
...
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-19 19:01:36 +00:00
Abduqodiri Qurbonzoda
2140580fb1
[K/N] Mark Any?.identityHashCode() with ExperimentalNativeApi
...
Instead of ExperimentalStdlibApi
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-19 19:01:36 +00:00
Vsevolod Tolstopyatov
af9252aa96
Mark all Worker-related API as obsolete.
...
* Explain what obsolete means and why workers are obsolete
* Add some documentation to workers to explain its common pitfalls
^KT-54702
Merge-request: KT-MR-9563
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com >
2023-04-19 09:28:23 +00:00
Abduqodiri Qurbonzoda
f14f88b7ff
[K/N] Inline Array constructor
...
As a part of efforts to stabilize Native stdlib.
Merge-request: KT-MR-9643
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-04-18 17:30:53 +00:00
Ilya Gorbunov
7a6947ad35
KT-58046 Generalize saturating duration math to arbitrary units
2023-04-18 15:25:31 +00:00
Alexander Shabalin
9fd05632f0
[K/N] Track object counts during sweep ^KT-55364
...
Previously object count was tracked via allocator. It adds additional
burden on every allocation. Tracking via sweeper is better because
it mostly happens on the GC thread during a concurrent sweep.
2023-04-18 12:08:02 +00:00
Alexander Shabalin
63231f7b73
[K/N] Create ObjectFactory only w/o custom allocator ^KT-55364
2023-04-18 12:08:01 +00:00
Alexander Shabalin
cb7698a8c2
[K/N] Track current heap size ^KT-55364
2023-04-18 12:08:01 +00:00
Alexander Shabalin
18b6351d5d
[K/N] Tweak GC logs ^KT-55364
...
In info log one big chunk at the end of the GC iteration.
2023-04-18 12:08:00 +00:00
Alexander Shabalin
f4c89148b8
[K/N] Tweak runtime logging ^KT-55364
...
Print thread id and process uptime.
2023-04-18 12:08:00 +00:00
Abduqodiri Qurbonzoda
12f7a6de3e
[K/N] Experimental ByteArray.get/setPrimitiveAt(index) functions
...
As a part of Native stdlib stabilization efforts.
Merge-request: KT-MR-9346
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-04-17 12:42:31 +00:00
Abduqodiri Qurbonzoda
e7225d29ff
[K/N] Mark unit testing API with ExperimentalNativeApi
...
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-17 12:30:42 +00:00
Abduqodiri Qurbonzoda
f75b72990e
[K/N] Deprecate SuspendFunction interface with WARNING
...
As a part of efforts to stabilize Native stdlib.
2023-04-17 12:01:55 +00:00
Abduqodiri Qurbonzoda
8629c92c62
Update copyright of generatedUnicodeData files
2023-04-12 23:28:12 +00:00
Abduqodiri Qurbonzoda
e1c91ee50f
[K/N] Move kotlin.native.internal.GC into kotlin.native.runtime
...
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-12 13:07:50 +03:00
Abduqodiri Qurbonzoda
7a2e2f5f9f
[K/N] Move GCInfo, MemoryUsage, RootSetStatistics into kotlin.native.runtime
...
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-12 13:07:49 +03:00
Abduqodiri Qurbonzoda
bb8498b0c5
[K/N] Move kotlin.native.internal.Debugging into kotlin.native.runtime
...
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-12 13:07:49 +03:00
Abduqodiri Qurbonzoda
f90b846f86
Loosen @NativeRuntimeApi opt-in requirement level to WARNING
2023-04-12 13:07:48 +03:00
Abduqodiri Qurbonzoda
ab78b44d2e
[K/N] Introduce NativeRuntimeApi annotation
...
Marks the Kotlin/Native stdlib API that is related to runtime behavior.
Such API is unstable and won't become stable in the future.
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-12 13:07:47 +03:00
Abduqodiri Qurbonzoda
113d4d8679
[K/N] Internalize KPropertyImpl classes
...
As a part of efforts to stabilize Native stdlib.
2023-04-12 09:45:59 +00:00
Abduqodiri Qurbonzoda
92c39b0107
[K/N] Remove FixmeReflection annotation class
...
As a part of efforts to stabilize Native stdlib.
2023-04-12 09:45:58 +00:00
Abduqodiri Qurbonzoda
0bd263b12a
[K/N] Mark kotlin.native.ref.Cleaner with @ExperimentalNativeApi
...
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-12 09:44:25 +00:00
Abduqodiri Qurbonzoda
16078ae8e8
[K/N] Mark WeakReference with ExperimentalNativeApi
...
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-12 09:44:25 +00:00
Abduqodiri Qurbonzoda
6f5504e59b
[K/N] Introduce ExperimentalNativeApi annotation
...
An opt-in annotation to mark the Kotlin/Native-only standard library API
we doubt that eventually will be stabilized.
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-12 09:44:24 +00:00
Abduqodiri Qurbonzoda
c961c15729
Commonize AssertionError(message, cause) constructor
2023-04-11 13:32:54 +00:00
Abduqodiri Qurbonzoda
8e995e6c62
[K/N] Deprecate ArrayIndexOutOfBoundsException
...
As a part of efforts to stabilize Native stdlib.
2023-04-11 13:32:54 +00:00
Abduqodiri Qurbonzoda
be87b6950c
[K/N] Hide AssertionError(cause: Throwable?) constructor
...
To align Native AssertionError behavior with JVM.
As a part of efforts to stabilize Native stdlib.
2023-04-11 13:32:54 +00:00
Abduqodiri Qurbonzoda
0c89224955
[K/N] Deprecate getTime and measureTime functions
...
As a part of efforts to stabilize Native stdlib.
Merge-request: KT-MR-9533
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-04-11 13:31:12 +00:00
Abduqodiri Qurbonzoda
b65a68ca0d
[K/N and WASM] Internalize NoWhenBranchMatchedException and UninitializedPropertyAccessException
...
As a part of efforts to stabilize Native stdlib.
Merge-request: KT-MR-9531
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-04-10 21:10:51 +00:00
Abduqodiri Qurbonzoda
9f50f8ff2a
[K/N] Internalize print/println(String) functions
...
As a part of efforts to stabilize Native stdlib.
2023-04-08 21:50:36 +03:00
Abduqodiri Qurbonzoda
709d6c38d2
[K/N] Internalize IntrinsicConstEvaluation annotation
...
As a part of efforts to stabilize Native stdlib.
2023-04-08 21:50:35 +03:00
Abduqodiri Qurbonzoda
54bbeae273
[K/N] Internalize TypeCastException
...
As a part of efforts to stabilize Native stdlib.
2023-04-08 21:50:34 +03:00
Abduqodiri Qurbonzoda
df642dd3fb
[K/N] Internalize valueOfForEnum and valuesForEnum functions
...
As a part of efforts to stabilize Native stdlib.
2023-04-08 21:50:33 +03:00
Abduqodiri Qurbonzoda
72f87ba55f
[K/N] Internalize functions for throwing specific exception from C++ code
...
As a part of efforts to stabilize Native stdlib.
2023-04-08 21:50:33 +03:00
Abduqodiri Qurbonzoda
95f1d0b6ae
[K/N] Internalize getNativeNullPtr() functions
...
As a part of efforts to stabilize Native stdlib.
2023-04-08 21:50:32 +03:00