Commit Graph

6452 Commits

Author SHA1 Message Date
Vasily Levchenko 9dab919dc4 [debug][bindings][python] don't build synthetic for null values (KT-41291) 2020-10-09 13:01:47 +02:00
Vasily Levchenko a511e18742 [debugger][bindings] drop 'struct' prefix in type name check 2020-10-09 13:01:47 +02:00
Ilya Matveev 091903c6a2 [Runtime testing] Store GTest revision in root gradle.properties 2020-10-09 17:07:05 +07:00
Ilya Matveev 0e17f84750 [Runtime testing] Don't provide a default value for googletest.revision 2020-10-09 17:07:05 +07:00
Ilya Matveev 24657a2860 [Build] Change build dir layout to separate production and test bitcodes 2020-10-09 17:07:05 +07:00
Ilya Matveev f644e394ab [Runtime testing] Automate downloading GoogleTest 2020-10-09 17:07:05 +07:00
Pavel Punegov 51784c0e34 Make objc interop tests depend on platform libs 2020-10-09 11:36:22 +03:00
Svyatoslav Scherbina 9c7a002eb0 Prevent Obj-C dealloc accessing Kotlin counterpart
#KT-41811 Fixed.

Also add GC assertion for add ref for reclaimed object.
2020-10-09 10:44:31 +03:00
Svyatoslav Scherbina e5e1648462 Keep permanent flag in KotlinBase instead of requesting from the object
This works better when the object becomes invalid
2020-10-09 10:44:31 +03:00
Campbell Jones 185f0a3101 Add jcenter and maven central as backup repositories 2020-10-08 20:28:15 +03:00
Igor Chevdar 6fc5eea26b [optmz] Fixed bug with EA divergence handling + test 2020-10-08 16:15:59 +03:00
Ilya Matveev cb146e06ab [Build] Refactor compiling native code to bitcode
Also switch to kts in the corresponding buildscripts.
2020-10-08 17:16:22 +07:00
Pavel Punegov 9663e724aa Fix local variable matching pattern. 2020-10-07 20:09:51 +03:00
Pavel Punegov fe566e2c73 Exclude coroutines/multiModule tests (KT-40121) 2020-10-07 20:09:51 +03:00
Pavel Punegov 83024d7ffb Execute tests for reflection 2020-10-07 20:09:51 +03:00
Pavel Punegov 45e79846f9 Fix external tests: proper handle variables with getters and check vars in all files 2020-10-07 20:09:51 +03:00
Dmitriy Dolovov 13cf470e33 [KLIB tool] Print ID signatures 2020-10-07 17:45:21 +03:00
Dmitriy Dolovov 0ea834ea1f [C-interop] Modality of accessors should be the same as of property
^KT-42412
2020-10-07 09:38:58 +03:00
Dmitriy Dolovov f21c1bffde Minor. Reminder to replace metadata flag 2020-10-07 09:38:58 +03:00
SvyatoslavScherbina 34cd218e4a Don't allow GC in BackRefFromAssociatedObject::tryAddRef
This function is invoked while a non-recursive os_lock is taken,
and GC can provoke Obj-C object deallocation taking the same lock
recursively.
2020-10-06 19:28:00 +03:00
Elena Lepilkina 93df6c45ac Save scope object during visiting function in code generator 2020-10-06 15:33:22 +03:00
Ilya Matveev ee0159633c [kotlin.test] Allow registering zero events in test run statistics
We represent an ignored test suite in tests statistics just by
registering all its test cases as ignored. The registering method
expects a non-zero number of ignored tests. But a suite may contain
zero test cases, e.g. when all of them were filtered out by CLI options.

In this case the registering will fail (see #3817).

This patch fixes it by allowing registering zero events in all statistics
methods.
2020-10-06 11:56:51 +07:00
Sergey Bogolepov ab0f7e84ea [Xcode 12] Update konan.properties and tarballs version 2020-10-06 11:22:14 +07:00
Sergey Bogolepov 158e5797cb [Xcode] Add script for updating frameworks 2020-10-06 11:22:14 +07:00
Sergey Bogolepov 2e12583c0a [Xcode 12] macOS frameworks 2020-10-06 11:22:14 +07:00
Sergey Bogolepov 4e50edf619 [Xcode 12] watchOS frameworks 2020-10-06 11:22:14 +07:00
Sergey Bogolepov 0fa1c6dd6f [Xcode 12] tvOS frameworks 2020-10-06 11:22:14 +07:00
Sergey Bogolepov 97c6df913d [Xcode 12] iOS frameworks 2020-10-06 11:22:14 +07:00
Sergey Bogolepov 27232bca5f [Xcode 12] Bump major version 2020-10-06 11:22:14 +07:00
Kirill Shmakov accf6b014b Advance LLDB bundles to 10th version
Since we dont have 10th LLDB for Windows currently, only
MacOS and Linux are advanced.

This relates to #KT-41716
2020-10-02 10:17:25 +03:00
Dmitriy Dolovov 6c187278ee [C-interop] Stubs for C functions without parameter names should have non-stable names
^KT-41250
2020-10-01 11:46:05 +03:00
LepilkinaElena ccb6927e05 [KT-42275] Eliminate recursive GC calls (#4412) 2020-09-30 19:23:27 +03:00
sergey.bogolepov 9c4831ee45 Use Kotlin's emptySet instead of Java one. 2020-09-30 19:31:06 +07:00
sergey.bogolepov 077ff4840a [Cache][ObjC] Do not access cached Obj-C metaclass via getter
Obj-C metaclasses (that are represented as Kotlin companions) are handled with intrinsic in codegen so there is no need to call globalAccessor to access them.
2020-09-30 19:31:06 +07:00
Elena Lepilkina da458f9a02 Use allParameters function from common code in Kotlin 2020-09-30 13:37:45 +03:00
LepilkinaElena 05efdfdee6 Simplify evaluation of explicit arguments (#4410) 2020-09-30 13:36:50 +03:00
SvyatoslavScherbina 134562c1f8 Rework invalid LLVM module reporting
* Dump module to file instead of stderr
* Report errors in an exception message instead of stdout (useful when running in Gradle daemon)
2020-09-30 13:03:12 +03:00
sergey.bogolepov c8c07f60b1 [Samples] Fix coverage sample 2020-09-29 15:17:35 +07:00
SvyatoslavScherbina c1f74bd0cb Deprecate CVariable.Type machinery, C enum .byValue and CEnum type 2020-09-28 15:26:51 +03:00
Vladimir Ivanov 0058928e67 [runtime] Fix possible race in terminate handler (#4194) 2020-09-28 15:18:32 +03:00
Svyatoslav Scherbina b134b042bd samples/calculator: fix building for iOS simulator with Xcode 12
Remove VALID_ARCHS from Xcode project, it caused the problem and its use is discouraged:
https://developer.apple.com/documentation/xcode-release-notes/xcode-12-release-notes
2020-09-28 13:55:17 +03:00
Svyatoslav Scherbina a3a1b7dc9b samples/calculator: update iOS deployment target to 11.0
This also allows to drop of VALID_ARCHS hack from Xcode project
2020-09-28 13:55:17 +03:00
Svyatoslav Scherbina bc250338fa samples/calculator: add missing dependency between Xcode project targets 2020-09-28 13:55:17 +03:00
SvyatoslavScherbina 03af05e9fc Fix MutableData.append(ByteArray, Int, Int) 2020-09-25 17:52:06 +03:00
Pavel Punegov f02ca2cac7 Fix test name to pattern conversion 2020-09-24 23:11:29 +03:00
Sergey Bogolepov c6e6e28651 [Docs] Using LLVM from the absolute path 2020-09-24 16:51:34 +07:00
Sergey Bogolepov c409192b97 [KT-40584] Refactor LLVM dependency processing
Currently, Kotlin/Native is tightly tied to a single predefined LLVM distribution that is used by developers as well as users. We want to separate distribution into two (smaller for users and bigger for devs) and also provide a way for users to use their own LLVM distribution (e.g. system one).
This commit adds this user-dev separation, yet without actual update of distributions.
2020-09-24 16:51:34 +07:00
Sergey Bogolepov 1615817905 Allow to set dependencies from user's system
Currently it is impossible to set something like
  llvmHome.linux_x64 = /usr
because DependencyProcessor has only `resolveRelative` method
which looks only inside dependencies folder.
Introduction of less restrictive `resolve` method solves this problem.
2020-09-24 16:51:34 +07:00
SvyatoslavScherbina f76cf52c81 Fix KT-42000 2020-09-24 11:45:31 +03:00
Pavel Punegov e85e87620c Fix to KonanIrlinker usage: adds TranslationContext
(cherry picked from commit dc32426a6fda9f79a617e21790b4fb69693afec0)
2020-09-22 15:50:23 +02:00