Abduqodiri Qurbonzoda
0811a5b77b
Promote enumEntries() to stable #KT-65532
2024-02-27 19:49:12 +00:00
Aleksei.Glushko
69127b4483
[K/N] Exapnd concurrent part of the GC mark phase (KT-58865)
...
* Build mark closure completely concurrent.
* Reintroduce concurrent weak processing.
* Request the second STW only to preare the heap for sweeping.
2024-02-27 18:55:31 +00:00
Aleksei.Glushko
b7067e0980
[K/N] ExtraSafePointActionActivator to be used in concurrnt mark
2024-02-27 18:55:31 +00:00
Aleksei.Glushko
728e9a5811
[K/N] OnceComputable C++ utility class
2024-02-27 18:55:31 +00:00
cristiangarcia
e83d2e31d4
Fix CompileToBitcodePlugin onlyIf to make it CC compatible
...
Required for KTI-1553
2024-02-27 10:32:58 +00:00
Artem Olkov
dd9332d9e1
Add kotlin runtime modulemap for swift export as part of kotlin-native dist #KT-65673 fixed
...
Co-authored-by: Alexander Shabalin <alexander.shabalin@ashabalin.me >
Merge-request: KT-MR-14493
Merged-by: Artem Olkov <artem.olkov@jetbrains.com >
2024-02-26 12:51:57 +00:00
Abduqodiri Qurbonzoda
31aa71dd6a
Promote Common String.toCharArray(destination) to stable #KT-65532
2024-02-26 10:48:29 +00:00
Ilya Gorbunov
85854a6b8d
[stdlib] Make enumEntriesIntrinsic not reified/inline
...
It's required to simplify the corresponding backends' inliners.
KT-59712, KT-59713
2024-02-23 05:50:37 +00:00
Ilya Gorbunov
0ecbbbf1ca
[stdlib] Set AV to 2.0, LV to 1.9 for main compilations, build tests with K2
2024-02-21 16:28:12 +00:00
Abduqodiri Qurbonzoda
f6f04b209f
[K/N] Remove deprecated setUnhandledExceptionHook(not-null) overload #KT-65532
2024-02-20 10:35:13 +00:00
Abduqodiri Qurbonzoda
dd89efbce2
[K/N] Remove deprecated deinitRuntimeIfNeeded #KT-65532
2024-02-20 10:35:13 +00:00
Ilya Gorbunov
15375c0fd5
[stdlib] Use more idiomatic and performant implementation of isBlank
...
Also replace expect-actual with a common function because its implementation is no longer different in different platforms.
KT-65590
2024-02-20 03:48:08 +00:00
cristiangarcia
4a74498be7
Outputs are not serializable, FileCollection is
...
Required for KTI-1553
2024-02-09 19:10:03 +00:00
Alexander Shabalin
5bd0bbb159
[K/N][tests] Regroup runtime tests ^KT-53776
2024-02-09 11:14:56 +00:00
Alexander Shabalin
3379b3e930
[K/N] Fix stdlib cache task dependency.
2024-02-08 11:50:21 +00:00
Igor Chevdar
6c05219485
[IR][K/N] Extracted explicit var spilling phase from coroutines lowering
...
Not only does it give some flexibility but also it could be turned off
in the future (by providing trivial replacement) as a workaround
#KT-65153
2024-02-07 18:54:31 +00:00
Vladimir Sukharev
118a5cee06
[K/N][Tests] Cleanup tests code from old infra
...
^KT-61259
2024-01-31 16:17:21 +00:00
Vladimir Sukharev
2276abfb85
[K/N][Tests] Use GTest patterns for ignored tests
...
^KT-61259
2024-01-31 16:17:21 +00:00
Artem Kobzar
8c69ffe8c9
[K/Wasm] Generate wasm-specific unsigned implementations ^KT-58039 Fixed
2024-01-29 20:11:41 +00:00
Artem Kobzar
b59993d88a
[K/Wasm] Prepare for splitting unsigned implementation helpers into expect/actuals KT-58039
2024-01-29 20:11:41 +00:00
Alexander Shabalin
48f5e1d05c
[K/N] Deprecate -Xworker-exception-handling ^KT-65170
...
Also deprecate legacy option with error (was a warning since 1.9.20-Beta)
2024-01-22 19:22:44 +00:00
Alexander Shabalin
266208c500
[K/N] Fix finalizer handling with mimalloc ^KT-63423
2024-01-18 17:53:04 +00:00
Alexander Shabalin
ccba52aae4
[K/N][test] Mitigate a race in WorkerTest.executeAfterOrdering
...
Mostly affects linux aarch64 because we run it under qemu.
2024-01-18 08:12:22 +00:00
Alexander Shabalin
30d6fa730e
[K/N] Add separate FinalizerProcessor for main thread ^KT-63423
2024-01-17 18:26:00 +00:00
Alexander Shabalin
8a86fec38f
[K/N] Add RunLoopFinalizerProcessor ^KT-63423
2024-01-17 18:26:00 +00:00
Alexander Shabalin
d8fdc4d31a
[K/N] Add RunLoopTimer ^KT-63423
2024-01-17 18:26:00 +00:00
Alexander Shabalin
b2d957b990
[K/N] Extract RunLoopSource ^KT-63423
2024-01-17 18:26:00 +00:00
Alexander Shabalin
2dd7a9ef21
[K/N] Support CF objects in ObjectPtr ^KT-63423
2024-01-17 18:26:00 +00:00
Alexander Shabalin
e5269daa74
[K/N] Constructor of ObjectPtr with retain ^KT-63423
2024-01-17 18:26:00 +00:00
Alexander Shabalin
c4992f1912
[K/N] Move AutoreleasePool into objc_support ^KT-63423
2024-01-17 18:26:00 +00:00
Alexander Shabalin
815b452435
[K/N] Remove old release-on-main ^KT-63423
2024-01-17 18:26:00 +00:00
Alexander Shabalin
7d35c1087e
[K/N] Make GlobalData be initialized lazily ^KT-64313
2024-01-16 16:54:58 +00:00
Vladimir Sukharev
5f51f5e1fc
[K/N] Migrate more cinterop tests
...
^KT-61259
2024-01-16 11:58:31 +00:00
Alexander Shabalin
d2cf4548f6
[K/N] Fix ExtraObjectData not being collected ^KT-63423
2024-01-15 13:04:37 +00:00
Igor Yakovlev
2d08953c91
[stdlib] Remove unused kotlin.time.formatUpToDecimals
2024-01-12 18:28:00 +00:00
Alexander Shabalin
30550a6da1
[K/N] Immediately destroy objects that finalize only via ExtraObjectData ^KT-63423
2024-01-12 15:03:46 +00:00
Aleksei.Glushko
8ed806ebe0
[K/N] Concurrent phase in GC mark (KT-58865)
...
+ Log Stop The World reasons
Merge-request: KT-MR-13759
Merged-by: Alexey Glushko <aleksei.glushko@jetbrains.com >
2024-01-09 18:34:36 +00:00
Dmitrii Gridin
b6d373d8e5
Update copyright to 2024
2024-01-05 13:43:17 +00:00
Alexander Shabalin
3f2584bb02
[K/N] Move calls checker into separate module ^KT-62091
2024-01-05 13:35:35 +00:00
Alexander Shabalin
e959e97992
[K/N] Fix :kotlin-native:runtime:clean
...
The task erroneously deleted the build directory during
configuration phase.
2024-01-05 12:17:08 +00:00
Alexander Shabalin
5208b3c024
[K/N] Put FinalizerProcessor CFRunLoop usage under a flag ^KT-64313
2024-01-05 10:46:49 +00:00
Alexander Shabalin
d665eb3575
[K/N] Fix calls checker allow list for signposts ^KT-62689
2024-01-04 16:58:20 +00:00
Pavel Punegov
fc1d7df0bc
[K/N][build] Simplify stdlib build
...
Build stdlib with a single task that also sets all supported targets
to the manifest file.
Remove manifest merging as it is not needed anymore.
2023-12-14 11:33:20 +00:00
Pavel Punegov
2d2714c8de
[K/N] Move runtime bitcode files out of stdlib
...
Native bitcode files were moved out of the stdlib to the default
location of bitcode files in the dist.
Now it is possible to build stdlib separately and once as a klib
without bitcode files inside.
2023-12-14 11:33:20 +00:00
Ilya Gorbunov
35aa17e1d0
Pack K/N stdlib sources into single zip
...
With the directory structure similar to one of a multiplatform library,
where each source set sources are placed into the directory
named after this source set.
Do not use legacy projects for building relative paths
2023-12-13 15:40:25 +00:00
Sergey Bogolepov
ce4eecebf4
KT-63264: Introduce a new ExportedBridge annotation
...
Swift Export Frontend generates a Kotlin file/library that contains a
set of simple bridging functions that connect Swift wrappers to their
Kotlin counterparts.
There are certain requirements for these wrappers:
1. They should not be DCEd when compiling a binary library.
In other words, these functions are roots.
2. They should provide a stable simple binary name.
3. Their signatures should be much simpler and restricted comparing to
other Kotlin functions.
Altogether, these requirements should be covered by introducing the new
ExportedBridge annotation.
Note: Frontend checks of ExportedBridge functions are not implemented
yet.
2023-12-12 07:03:25 +00:00
Aleksei.Glushko
569d37028f
[K/N] Mark barriers implementation
...
Merge-request: KT-MR-13409
Merged-by: Alexey Glushko <aleksei.glushko@jetbrains.com >
2023-12-08 17:52:14 +00:00
Troels Bjerre Lund
f1b6c2df45
Native: add missing stubs for objc for non-objc targets
...
Kotlin code for Objective-C interop is always included to stdlib.
It depends on some C++ code. The latter is compiled conditionally -
only for targets supporting Objective-C interop. That might cause
undefined symbols problems when DCE is not enabled.
To deal with it, we usually have trivial stubs in C++ code, used
for targets not supporting Objective-C interop.
This commit adds a couple of such missing stubs.
2023-12-08 11:43:45 +00:00
Alexander.Likhachev
a19bd2ed2e
[Build] Migrate most of the build logic from Project.buildDir usage
...
It's going to be deprecated in Gradle 8.3
There's currently no way to pass a `org.gradle.api.provider.Provider` to the JavaExec.systemProperty or Test.systemProperty. There's a workaround using `org.gradle.process.CommandLineArgumentProvider`, but I intentionally don't rework these calls as Gradle is going to allow passing providers to configure system properties: https://github.com/gradle/gradle/issues/12247#issuecomment-1568427242
^KTI-1473 In Progress
2023-12-07 18:31:06 +00:00
Troels Bjerre Lund
4f77434ea5
[K/N] Remove LLVM coverage
...
The -Xcoverage feature has not worked and has been disabled for a while.
This fix removes it, and all of its uses.
Co-authored-by: Troels Lund <troels@google.com >
Merge-request: KOTLIN-MR-821
Merged-by: Alexander Shabalin <alexander.shabalin@jetbrains.com >
2023-12-06 14:07:16 +00:00