Commit Graph

96964 Commits

Author SHA1 Message Date
Ilya Kirillov f9298d8e85 [LL FIR] try to check for PCE in ValueWithPostCompute to avoid possible deadlocks 2022-12-14 08:33:06 +00:00
Ilya Kirillov de7383ff15 [LL FIR] check for PCE after acquiring the lock for resolve
To the moment we acquire the lock, the computation might not be needed
2022-12-14 08:33:06 +00:00
Ilya Kirillov c80221afd3 [LL FIR] always use lockWithPCECheck for resolve to check possible PCE 2022-12-14 08:33:06 +00:00
Ilya Kirillov d7ee312b83 [Analysis API] do not rethrow java.lang.Error
Errors as OutOfMemoryError should not be caught or wrapped
2022-12-14 08:33:05 +00:00
Ilya Kirillov 9cf77e19be [LL FIR] fix memory leak from LLFirSessionProvider for the module
LLFirSessionProvider stores all transitive module dependencies,
even if they are not needed or already invalidated and garbage collected

Now, the dependencies are stored on the weak references, and so then nobody uses them, they will be garbage collected
2022-12-14 08:33:05 +00:00
Dmitrii Gridin 34e4645385 [ULC] avoid resolve from KtUltraLightClassModifierList.hasModifierProperty in most cases
^KT-55445 Fixed
2022-12-13 18:18:00 +00:00
Svyatoslav Scherbina 92a6c29941 Bump Kotlin/Native version to 1.8.20-dev-4077 2022-12-13 18:01:26 +00:00
Sergej Jaskiewicz 9c6f92d697 [test] Add a test for KT-55318 2022-12-13 17:01:00 +00:00
Dmitrii Gridin cebccee4be [SLC] add inheritors testData for facade class 2022-12-13 16:54:26 +00:00
Dmitrii Gridin 66dc7a3168 [SLC] make inheritors testData more human-readable 2022-12-13 16:54:26 +00:00
Dmitrii Gridin 69d308edac [SLC] change 'inh.txt' extension to 'inheritors.txt' for tests 2022-12-13 16:54:25 +00:00
Dmitrii Gridin aa625ffb0d [SLC] implement 'isInheritor' for 'DefaultImpls'
^KT-55442 Fixed
2022-12-13 16:54:25 +00:00
Dmitrii Gridin b2c0a37050 [SLC] implement infrastructure for light class hierarchy tests 2022-12-13 16:54:25 +00:00
Dmitrii Gridin feff03894f [SLC] fix testData dir name 2022-12-13 16:54:24 +00:00
dependabot[bot] 1371216207 Bump decode-uri-component in /libraries/tools/kotlin-test-js-runner
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-13 16:27:53 +01:00
Svyatoslav Kuzmich 777bb0f0cb [Wasm] Rename Wasm*CodegenContextImpl to Wasm*CodegenContext 2022-12-13 16:08:49 +01:00
Svyatoslav Kuzmich b9b2723b0a [Wasm] Remove Wasm*CodegenContext interfaces
Use classes instead
2022-12-13 16:08:48 +01:00
Sebastian Sellmair 1d30ce9662 [Gradle] MppCompositeBuildIT: Replace included build path in Windows compatible way
^KT-52172 Verification Pending
2022-12-13 14:47:19 +00:00
Sebastian Sellmair 151da98331 [Gradle] cleanNativeDistributionCommonization: Don't try to delete .lock file
^KT-52172 Verification Pending
2022-12-13 14:47:19 +00:00
Sebastian Sellmair 8a01ad9010 [Gradle] MppCompositeBuildIT: Add test for included build using different Kotlin version
^KT-52172 Verification Pending
2022-12-13 14:47:18 +00:00
Sebastian Sellmair fb6a2f5bb4 [Gradle] Implement MppCompositeBuildIT based on martinbonnin's commit
^KT-52172 Verification Pending
2022-12-13 14:47:18 +00:00
Sebastian Sellmair abd58445c9 [Gradle] Move test project from martinbonnin into /sample1
^KT-52172 Verification Pending
2022-12-13 14:47:18 +00:00
Martin Bonnin 240983bca4 [Gradle] add a reproducer project for KT-52172
Cherry Picked from: https://github.com/JetBrains/kotlin/pull/5045
2022-12-13 14:47:17 +00:00
Sebastian Sellmair b706e05e65 [Gradle] NativeDistributionCommonizerLock: Lift lockedOutputDirectories into companion
^KT-52172 Verification Pending
2022-12-13 14:47:17 +00:00
Sebastian Sellmair 7f14255be8 [Gradle] Implement initial MppCompositeBuildIT
^KT-52172 Verification Pending
2022-12-13 14:47:17 +00:00
Sebastian Sellmair d12fbcf574 [Gradle] Share NativeDistributionCommonizerLock with 'cleanNativeDistributionCommonization' task
KT-52172
2022-12-13 14:47:16 +00:00
Sebastian Sellmair 6e0f5e8212 [Gradle] NativeDistributionCommonizerCache: Share intraProcessLock statically
KT-52172
2022-12-13 14:47:16 +00:00
Sebastian Sellmair b872d42723 [Gradle] Handle multiplatform composite builds when metadata.jar is not yet present
KT-52172
2022-12-13 14:47:16 +00:00
Sebastian Sellmair 90f8edbe80 [Gradle] TCS:Gradle Sync: Initial support for multiplatform composite builds
KT-52172
2022-12-13 14:47:15 +00:00
Sebastian Sellmair d4177f167b [Gradle] ResolvedMppVariantsProvider: Use dependent.selected instead of requested...
... in order to support dependencySubstitutions

KT-52172
2022-12-13 14:47:15 +00:00
Sergey Bogolepov 287337007f [K/N] More clear separation of CAdapterGenerator
Separated CAdapterBindingsBuilder into
CAdapterCodegen and CAdapterApiExporter. It makes C export much more
comprehensible and allows to split it into more clear phases.
2022-12-13 14:42:22 +00:00
Sergey Bogolepov c33013e159 [K/N][CExport] Prepare a BuildCExports phase for the dynamic driver 2022-12-13 14:42:22 +00:00
Sergey Bogolepov 4b67ecc15b [K/N][CExport] Minor cleanup 2022-12-13 14:42:21 +00:00
Sergey Bogolepov 2881aa4478 [K/N][CExport] CAdapterGenerator.BindingsBuilder -> CAdapterBindingsBuilder 2022-12-13 14:42:21 +00:00
Sergey Bogolepov 4b6b74fb2c [K/N][CExport] Explicitly pass data to CAdapterGenerator.BindingsBuilder 2022-12-13 14:42:20 +00:00
Sergey Bogolepov 16b977530b [K/N][CExport] Replace CAdapterGenerator methods with CAdapterTypeTranslator 2022-12-13 14:42:20 +00:00
Sergey Bogolepov f66d42c644 [K/N][CExport] Extract type translation to a separate class 2022-12-13 14:42:20 +00:00
Sergey Bogolepov f467afa94b [K/N] Move CAdapter* to a separate package similar to objcexport 2022-12-13 14:42:19 +00:00
Ilya Kirillov 573811a199 [LL FIR] make FirDesignation.path type more precise. I's always a FirRegularClass 2022-12-13 13:16:33 +00:00
Ilya Kirillov cd83fec078 [LL FIR] fix lazy resolve of status for the members of the nested class
^KTIJ-23932 fixed
2022-12-13 13:16:32 +00:00
Artem Daugel-Dauge 82a3ac830e KT-55243 Fix Gradle 7.6 incompatible root project podspec generation
Merge-request: KT-MR-7988
Merged-by: Artem Daugel-Dauge <Artem.Daugel-Dauge@jetbrains.com>
2022-12-13 12:38:36 +00:00
Aleksei.Glushko c6d8af003d [K/N] Don't get out of bound during SSE hashCode calculation
Use loadl_epi64 to read vectors of u16x4.

Merge-request: KT-MR-7964
Merged-by: Alexey Glushko <aleksei.glushko@jetbrains.com>
2022-12-13 10:44:52 +00:00
vladislav.grechko 18edf43ec7 Disable 'InlineLateinit' feature in 1.9 language version
The feature is not ready to be shown in preview

^KT-55247: Fixed
2022-12-13 10:27:01 +00:00
vladislav.grechko eb87b726e2 Disable 'CustomEqualsInValueClasses' feature in 1.9 language version
The feature is not ready to be shown in preview

^KT-55246: Fixed
2022-12-13 10:27:01 +00:00
Andrey Uskov bdf20d756e Enable new incremental compilation by default
#KT-53832 Fixed
2022-12-12 21:40:29 +00:00
Sebastian Sellmair 5b0350d146 [Gradle] Make IdeBinaryDependencyResolver part of ExternalKotlinTargetApi
KT-55289
2022-12-12 20:29:14 +00:00
Sebastian Sellmair 59ddd381aa [Gradle] Implement IdeMultiplatformImportStatistics as project level service
KT-55289
2022-12-12 20:29:13 +00:00
Sebastian Sellmair 636d4a74a5 [Gradle] Add convenience extensions for IdeaKotlinBinaryDependency
^KT-55289 Verification Pending
2022-12-12 20:29:13 +00:00
Sebastian Sellmair 5deebd7209 [Gradle] Fix IdeSourceDependencyResolutionTest
... after 786ea79 [MPP] add tests for source set constraints

^KT-55289 Verification Pending
2022-12-12 20:29:13 +00:00
Sebastian Sellmair d7ba6916b5 [Gradle] Implement UnusedSourcesAndDocumentationFilter
^KT-55289 Verification Pending
2022-12-12 20:29:12 +00:00