Troels Bjerre Lund
99e4ca65be
[K/N] Fix GC stats reporting sweep in wrong epoch ^KT-55364
...
Co-authored-by: Troels Lund <troels@google.com >
Merge-request: KOTLIN-MR-696
Merged-by: Alexander Shabalin <alexander.shabalin@jetbrains.com >
2023-05-25 12:48:30 +00:00
Igor Chevdar
55632f5df2
[K/N][runtime] Used internal isInstance
2023-05-22 12:49:58 +00:00
Igor Chevdar
d1a3752626
[K/N][tests] Fixed lldb tests on arrays
2023-05-22 12:49:58 +00:00
Troels Bjerre Lund
20d8f54ea3
Unlink weakref objects on finalizer-enque ^KT-55364
...
Co-authored-by: Troels Lund <troels@google.com >
Merge-request: KOTLIN-MR-694
Merged-by: Alexander Shabalin <alexander.shabalin@jetbrains.com >
2023-05-22 12:16:48 +00:00
Ilya Gorbunov
bbb36ce501
KT-58046 Promote time sources, time marks, measureTime to stable
2023-05-16 11:42:32 +00:00
Troels Bjerre Lund
bc7b1094c3
K/N custom-alloc: Fix GC stats for NextFitPage ^KT-55364
...
Swept and kept objects in NextFitPages are double counted; first in
GCApi::SweepObject and then again inside NextFitPage::Sweep. This fix
removes the latter.
Co-authored-by: Troels Lund <troels@google.com >
Merge-request: KOTLIN-MR-691
Merged-by: Alexander Shabalin <alexander.shabalin@jetbrains.com >
2023-05-12 09:24:16 +00:00
Igor Chevdar
2f24c6df80
[K/N] Added isSubtype intrinsic
2023-05-11 09:30:18 +00:00
Troels Bjerre Lund
388634e47d
[K/N] custom-alloc: Encode consecutive free blocks ^KT-55364
...
Co-authored-by: Troels Lund <troels@google.com >
Merge-request: KOTLIN-MR-662
Merged-by: Alexander Shabalin <alexander.shabalin@jetbrains.com >
2023-05-10 09:45:14 +00:00
Troels Bjerre Lund
918a247bcc
[K/N] custom_alloc: sweep extraobjects outside stw ^KT-55364
...
Co-authored-by: Troels Lund <troels@google.com >
Merge-request: KOTLIN-MR-677
Merged-by: Alexander Shabalin <alexander.shabalin@jetbrains.com >
2023-05-09 16:37:58 +00:00
Aleksei.Glushko
57707180c6
[K/N] Cooperative intrusive list (in preparations for parallel mark)
...
Merge-request: KOTLIN-MR-670
Merged-by: Aleksej Glushko <aleksei.glushko@jetbrains.com >
2023-05-09 15:08:32 +00:00
Vsevolod Tolstopyatov
f4e8ae5191
Explicitly declare stability levels of declarations in kotlinx.cinterop package
...
* @ExperimentalForeignApi for all declarations that operate on
unmanaged memory (i.e. pointers and references)
* @BetaInteropApi for the rest of the interoperability declarations,
namely Swift/CInterop-specific interfaces and convenience-functions
### Implementation details
* Some typealiases are not marked explicitly because it crashes the compiler,
yet their experimentality is properly propagated
* License header is adjusted where it previously had been existing
* Deprecated with ERROR interop declarations that are deprecated for more than
two years are removed
* WASM target interop declarations are deprecated
* Deliberately make Boolean.toByte and Byte.toBoolean foreign-experimental to scare
people away
^KT-57728 fixed
Merge-request: KT-MR-9788
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com >
2023-05-04 13:52:21 +00:00
Aleksei.Glushko
8173091fee
[K/N] print thread id in assertion failed
...
Merge-request: KOTLIN-MR-668
Merged-by: Aleksej Glushko <aleksei.glushko@jetbrains.com >
2023-05-02 10:23:38 +00:00
Ilya Gorbunov
b35b727d73
KT-53778 Remove experimental annotations from open ranges
2023-04-28 17:12:15 +00:00
Alexander Shabalin
cd93100148
[K/N] Fix sleeping in RWSpinLockTest ^KT-56233
2023-04-27 16:49:30 +00:00
Alexander Shabalin
e6c0f32477
[K/N] Fixing ConcurrentMarkAndSweepTest ^KT-56233
2023-04-27 16:49:30 +00:00
Ilya Gorbunov
448e9fc5e7
Drop functions hidden since 1.4 (inline-only or experimental in JVM)
...
Since it's no longer possible to use API version less than 1.4,
these functions can be no longer called at all.
2023-04-26 10:31:03 +00:00
Sergey Bogolepov
fce878d63a
[K/N] KT-56464: implementation of HiddenFromObjC for classes in backend
2023-04-26 09:36:10 +00:00
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