Kirill Rakhman
6d3b911dfc
[K2/Native] Configure metadata compilation mode
...
This fixes access to internal declarations in common source sets from
intermediate source sets that are compiled to metadata.
#KT-58219 Fixed
2023-04-27 10:49:53 +00:00
Ilya Chernikov
a045a0a81c
FIR: use default getter in serializer if fir contains none
...
since we generate the default getter in this case in
Fir2IrDeclarationStorage.createIrProperty, so the serialized metadata
should follow the same behavior.
#KT-57373 fixed
2023-04-27 09:14:20 +00:00
Abduqodiri Qurbonzoda
2248f4ea33
Remove supportsNamedCapturingGroup flag in tests
...
Now it is true on all platforms
2023-04-26 10:44:21 +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
c7b100a41a
[K/N] KT-56464: backend tests
2023-04-26 09:36:10 +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
Ilya Gorbunov
ace2279631
Refactor helper function to run/not run block of common code on specific platform
...
Use it in StringBuilder tests
2023-04-25 13:55:04 +00:00
Nataliya.Valtman
2a391f7330
Move kotlin-build-statistic project to :compiler
2023-04-25 11:29:09 +00:00
nataliya.valtman
e34dd043da
Add minimal statistic report for JPS build
...
Fix build stat for gradle 8
#KT-56438 Fixed
2023-04-25 11:29:09 +00:00
Pavel Kunyavskiy
e63ed03d19
K2: Consolidate value parameter annotations handling in Fir2Ir
...
Value parameters annotations are now handled consistently in
factory functions creating this IrValueParameter instances.
In before, it was handled in several different places, which leads to
being sometimes lost, e.g. in LazyFirSimpleFunction.
This caused original problem in interop checks.
^KT-58099
2023-04-24 13:36:36 +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
Igor Chevdar
3e0196da89
[K/N][IR] Used liveness analysis in the coroutines lowering
...
Liveness analysis results are used for spilling variables before
suspending a coroutine
2023-04-24 09:57:16 +03:00
Igor Chevdar
6a79163205
[K/N][IR] Extracted a common util function
2023-04-24 09:36:43 +03:00
Igor Chevdar
cf58e5ff9f
[K/N] Extracted some common BitSet utils
2023-04-24 09:36:43 +03:00
Pavel Punegov
1703d3a47e
[K/N][test] Skip test worker10 with Aggressive GC
...
Merge-request: KT-MR-9729
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com >
2023-04-21 17:02:32 +00:00
Svyatoslav Scherbina
509a97a7b5
Native: add coroutines into buildSrc classpath of performance builds
...
^KT-58160
2023-04-21 16:19:55 +00:00
Pavel Punegov
a98c2c178f
[K/N][test] Add missing parenthesis that discovered frontend issue
...
See also ^KT-58131
Merge-request: KT-MR-9702
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com >
2023-04-20 11:59:59 +00:00
Pavel Punegov
aa85e6d95c
[K2/N] Disable special backend checkers due to the ^KT-58099
...
Several interop tests fail with error:
"type kotlin.String? is not supported here: doesn't correspond to any C type"
Merge-request: KT-MR-9690
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com >
2023-04-20 08:41:36 +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
208b279d2b
[K/N] Internalize CharCategory.value/valueOf
...
As a part of efforts to stabilize K/N stdlib.
2023-04-19 20:20:42 +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
Ivan Kylchik
0b70b7904d
[K2] Create and add EvaluatedConstTracker in configuration
2023-04-19 13:52:43 +00:00
Ivan Kylchik
fe989d0ba7
[K2] Add languageVersionSettings to Fir2IrConfiguration class
2023-04-19 13:52:42 +00:00
Ivan Kylchik
e16231104e
[K2] Add Fir2IrConfiguration class to store configuration parameters
...
One example of such parameter is `linkViaSignatures`. There is
`Psi2IrConfiguration` as an analog for K1.
2023-04-19 13:52:41 +00:00
Pavel Punegov
1ee2d0814c
[K/N][test] Exclude test interop0
...
See ^KT-58099
Merge-request: KT-MR-9672
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com >
2023-04-19 12:49:25 +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
Vladimir Sukharev
a6d93797ee
[K2/N] Enable test interop_objc_foreignException
...
^KT-55909
Merge-request: KT-MR-9641
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-04-18 11:15:07 +00:00
Dmitriy Dolovov
87125d0703
[PL] Fix: Don't run partial linkage on early stages when no external dependencies have been loaded yet
2023-04-18 09:22:54 +00:00
Dmitriy Dolovov
997b6e6722
[PL] Fix: Don't try to implement non-implemented fake overrides in stdlib & co
2023-04-18 09:22:51 +00:00