Commit Graph

3337 Commits

Author SHA1 Message Date
Johan Bay 04e1e19dfc [K/N] skip lowerings for header caches
^KT-65443
2024-03-19 14:09:44 +00:00
Johan Bay 5adaa9a1f3 [K/N] skip consistency check for header caches
^KT-65443
2024-03-19 14:09:44 +00:00
Johan Bay 0dc646b0d1 [K/N] do not save klib hash in header caches
^KT-65443
2024-03-19 14:09:44 +00:00
Johan Bay 8f325d6f2c [K/N] remove class field types from caches
^KT-65443
2024-03-19 14:09:44 +00:00
Johan Bay 2d7107f354 [K/N] deserialize inline functions for header klibs
For header klibs the indices in the cache for the function bodies
are wrong so we instead deserialize the inline functions up-front.
^KT-65443
2024-03-19 14:09:44 +00:00
Johan Bay 32d67d101a [K/N] add flag to klib manifest for header klibs
^KT-65443
2024-03-19 14:09:44 +00:00
Johan Bay ac524f15d1 [K/N] serialize field names to caches
^KT-65443
2024-03-19 14:09:44 +00:00
Johan Bay 48ce542e95 [K/N] add header_cache output type
^KT-65443
2024-03-19 14:09:44 +00:00
Dmitriy Dolovov a007551574 Revert "[K/N] add header_cache output type"
This reverts commit 84341a9e25.
2024-03-15 22:32:50 +01:00
Dmitriy Dolovov ce6021e11d Revert "[K/N] serialize field names to caches"
This reverts commit 1b521d564f.
2024-03-15 22:32:50 +01:00
Dmitriy Dolovov a78d498e36 Revert "[K/N] add flag to klib manifest for header klibs"
This reverts commit 59f0c0464b.
2024-03-15 22:32:50 +01:00
Dmitriy Dolovov de3ad3cd3a Revert "[K/N] deserialize inline functions for header klibs"
This reverts commit a481f35450.
2024-03-15 22:32:50 +01:00
Dmitriy Dolovov dc66a53611 Revert "[K/N] remove class field types from caches"
This reverts commit 1f1522b787.
2024-03-15 22:32:50 +01:00
Dmitriy Dolovov 0df9b4242c Revert "[K/N] do not save klib hash in header caches"
This reverts commit 612caf13cf.
2024-03-15 22:32:50 +01:00
Dmitriy Dolovov ef814fe76e Revert "[K/N] skip consistency check for header caches"
This reverts commit d845e7c3f6.
2024-03-15 22:32:50 +01:00
Dmitriy Dolovov 23ee7cedfa Revert "[K/N] skip lowerings for header caches"
This reverts commit cf2135aaa4.
2024-03-15 22:32:50 +01:00
Johan Bay cf2135aaa4 [K/N] skip lowerings for header caches
^KT-65443
2024-03-15 10:24:26 +00:00
Johan Bay d845e7c3f6 [K/N] skip consistency check for header caches
^KT-65443
2024-03-15 10:24:26 +00:00
Johan Bay 612caf13cf [K/N] do not save klib hash in header caches
^KT-65443
2024-03-15 10:24:26 +00:00
Johan Bay 1f1522b787 [K/N] remove class field types from caches
^KT-65443
2024-03-15 10:24:26 +00:00
Johan Bay a481f35450 [K/N] deserialize inline functions for header klibs
For header klibs the indices in the cache for the function bodies
are wrong so we instead deserialize the inline functions up-front.
^KT-65443
2024-03-15 10:24:26 +00:00
Johan Bay 59f0c0464b [K/N] add flag to klib manifest for header klibs
^KT-65443
2024-03-15 10:24:26 +00:00
Johan Bay 1b521d564f [K/N] serialize field names to caches
^KT-65443
2024-03-15 10:24:26 +00:00
Johan Bay 84341a9e25 [K/N] add header_cache output type
^KT-65443
2024-03-15 10:24:25 +00:00
Alexander Shabalin d88092aa94 [K/N][tests] Migrate various runtime/ tests ^KT-61259 2024-03-15 01:28:01 +00:00
Ivan Kylchik 3ee126de74 [IR] Drop alwaysCreateTemporaryVariablesForArguments from inliner
This parameter was always set to be true.

#KT-66509
2024-03-14 16:00:53 +00:00
Svyatoslav Scherbina e002f07ff5 [K/N][build] Fix distPlatformLibs Gradle task dependencies on Windows
K/N distPlatformLibs Gradle task dependended on hostInstall and
hostCache. The latter doesn't work (= has incorrect dependencies) on
hosts that don't support compiler caches for the host target (i.e.
Windows).
As a result, running distPlatformLibs task on Windows didn't work,
causing local test runs to fail.

This commit fixes the problem by making distPlatformLibs depend on
`"${hostName}PlatformLibs` instead, so it does the same as before but
handles the non-caching hosts correctly.
2024-03-14 13:08:12 +00:00
Alexander Shabalin bbcc5c9aed [K/N][tests] Migrate interopTest tests ^KT-61259 2024-03-14 11:47:00 +00:00
Aleksei.Glushko 651f068e06 [K/N] Fix a race on mark queue destruction in CMS GC
Merge-request: KT-MR-14076
2024-03-14 10:23:06 +00:00
Aleksei.Glushko fb7176d5fa [K/N] Checked ManuallyScoped
Merge-request: KT-MR-14076
2024-03-14 10:23:06 +00:00
Aleksei.Glushko 5396a6f8da [K/N] Avoid unitialized "fake" values
Do not use `char[sizeof(T)]` as an internal utility replacement for `T` (e.g. in intrusive_list::head_).
    It's UB to access members of such values before a propper constructor of T is called.

    Merge-request: KT-MR-14076
2024-03-14 10:23:06 +00:00
cristiangarcia 8200cf404c Fix GitDownloadTask fails on windows
Required for KTI-1553
2024-03-14 09:19:37 +00:00
cristiangarcia 8dc460ae4a Fix CompileToExecutable CC issues
Required for KTI-1553
2024-03-14 09:19:37 +00:00
cristiangarcia 987f67e312 Fix CompileToExecutable CC issues
Required for KTI-1553
2024-03-14 09:19:37 +00:00
cristiangarcia 7693d9b9c4 KonanTest is not CC compatible
Required for KTI-1553
2024-03-14 09:19:37 +00:00
cristiangarcia 1e85233aab KonanDriverTest is not CC compatible
Required for KTI-1553
2024-03-14 09:19:37 +00:00
cristiangarcia bbbe5027f4 Postpone KonanCliCompilerRunner creation to workaround issues when consuming native dist
Required for KTI-1553
2024-03-14 09:19:37 +00:00
cristiangarcia bfbdf79207 ClangFrontend: notCompatibleWithConfigurationCache because GoogleTests are downloaded later
Required for KTI-1553
2024-03-14 09:19:37 +00:00
cristiangarcia 8f1f6ca9c9 Make :kotlin-native:runtime:hostRuntimeTests CC compatible
Required for KTI-1553
2024-03-14 09:19:37 +00:00
Aleksei.Glushko f2501ad424 [K/N] Use already dereferenced weakReferee (KT-66371)
And prevent weak barriers from execution during STW

Merge-request: KT-MR-14797
Merged-by: Alexey Glushko <aleksei.glushko@jetbrains.com>
2024-03-13 14:43:59 +00:00
Alexander Shabalin adf5331ff0 [K/N] Remove more ext properties 2024-03-13 12:35:15 +00:00
Alexander Shabalin 23710ac133 [K/N] Keep isolatedClassLoaders in a build service 2024-03-13 12:35:15 +00:00
Alexander Shabalin 3532056e0d [K/N] Remove global execClang extension 2024-03-13 12:35:15 +00:00
Alexander Shabalin aead2c2bff [K/N] Remove unused targetsWithoutZlib 2024-03-13 12:35:15 +00:00
Alexander Shabalin 5a9eea8c45 [K/N] Remove unused gradle ext properties 2024-03-13 12:35:15 +00:00
Alexander Shabalin bb8c8431e8 [K/N][tests] Move gradle stuff for old infra to old infra 2024-03-13 12:35:15 +00:00
Dmitry Savvinov 55e36dcf66 [build, native] Minor: delete obsolete commented out code 2024-03-12 16:22:27 +00:00
Dmitry Savvinov 53cbeb8edc [build, native] Adjust buildscripts after dropping K/N targets (6/8)
- Restore PlatformManager constructor (used in buildscripts)
- Replace references to deprecated K/N target with 'else'

Why: buildscripts use these references and compile against older K/N
version (from bootstrap). So they can't be adjusted to newer API,
compilation will fail right away. However, they can't be kept without
changes, because bootstrap tests will fail.

^KT-64517
^KT-66500
2024-03-12 16:22:27 +00:00
Dmitry Savvinov 4957d99fd6 [native] Drop deprecated Kotlin/Native targets (4/8)
We still want to report a readable error on using removed targets rather
than just an "Unknown target"-exception. As previous commits has removed
actual KonanTarget-entries, the check has to be adjusted to work on
plain strings.

^KT-64517
2024-03-12 16:22:27 +00:00
Dmitry Savvinov 29e90d70c6 [native] Drop deprecated Kotlin/Native targets (3/8)
This commit inlines some helper-APIs that became redundant after
dropping deprecated targets.

Full list:
- 'threadsAreAllowed' is always 'true' now
- 'indirectBranchesAreAllowed' is always 'true' now
- 'supportsThreads' is always 'true' now
- 'isMips' is always 'false' now
- 'tlsMode' is always 'LLVMGeneralDynamicTLSModel' now
- 'getBoxRange' is always equal to 'cache.defaultRange' now
-  `targetHasAddressDependency` is always true now, so memory order
   is always LLVMAtomicOrderingMonotonic now

^KT-64517
2024-03-12 16:22:27 +00:00