Commit Graph

73 Commits

Author SHA1 Message Date
Alexander Shabalin d5ca285a79 Move unhandledExceptionHook to kotlin code (#4704) 2021-02-24 10:53:42 +01:00
Alexander Shabalin 97262c273f Misc changes for GC in new MM (#4699) 2021-02-15 10:16:10 +01:00
Igor Chevdar 3164709fb7 [runtime] Fixed bug in x86 polynomial hash
Forced compiler to use legacy SSE instructions form instead of modern AVX form
2021-02-09 09:00:48 +01:00
Alexander Shabalin eedfea7f40 Add RootSet to unify iterating across the entire rootset (#4685) 2021-02-09 09:00:48 +01:00
Alexander Shabalin d875cb39c9 Sketch GC interface (#4682) 2021-02-09 09:00:48 +01:00
Svyatoslav Scherbina 61d3ae1477 Refactor building of reverse adapters in ObjCExportCodeGenerator
* Make it more understandable and reliable: don't predict which reverse
  adapters are inherited, reuse information from generating super types
  instead.
* Drop usages of obsolete "IrDeclaration.descriptor"
2021-02-09 09:00:48 +01:00
Ilya Matveev e45c2d31bc [kotlin.test] Do not run test suites containing only ignored tests
Popular frameworks such as JUnit, TestNG and Google Test do not
run @BeforeClass/@AfterClass hooks of test suites containing only
ignored tests.

This patch introduces the same behaviour to the Kotlin/Native's
kotlin.test runner.

See also: #4522, #4615.
2021-02-09 09:00:47 +01:00
Ilya Matveev 4f037b8b81 [kotlin.test] Don't run filtered out test suites by default
Popular frameworks such as JUnit, TestNG and Google Test do not
run test suites whose tests were fully filtered out. Thus
@BeforeClass/@AfterClass of such suites are not executed and the
suites are not reported in a test report.

This patch introduces the same behaviour to the Kotlin/Native's
kotlin.test runner.

See also: #4522, #4615.
2021-02-09 09:00:47 +01:00
Egor Zhdan c866dc7303 Fix reporting of filtered out test suites
This fixes the `--ktest_no_excluded_test_suites` command line option behavior to match its description in the help page.
2021-02-09 09:00:47 +01:00
Alexander Shabalin f312315346 Call initRuntimeIfNeeded before EnterFrame in interop adapters. (#4672) 2021-02-09 09:00:47 +01:00
Alexander Shabalin 99dc9e8e0c Relax setUnhandledExceptionHook requirements with the new MM (#4675) 2021-02-09 09:00:46 +01:00
Alexander Shabalin 2b69a0d03a Fix InitAndRegisterGlobal in new MM (#4673) 2021-02-09 09:00:46 +01:00
Alexander Shabalin 3bf1f55990 Handle nullptr in StablePointer API (#4671) 2021-02-09 09:00:46 +01:00
Alexander Shabalin 9295d7cf60 Fix single-thread check 2021-02-09 09:00:46 +01:00
Alexander Shabalin 5b6a8a3bdb Make freezing stuff non-terminating TODO 2021-02-09 09:00:46 +01:00
Abduqodiri Qurbonzoda e63b405f58 Commonize CharCategory and related functions #KT-39177 #KT-43216 #KT-39906 #KT-30652
(cherry picked from commit fc5c01b9a72498f9bd200817936a629689c0bff0)
2021-02-01 16:54:15 +01:00
Alexander Shabalin 04ee3e37e7 Implement ref updates in new MM (#4653) 2021-02-01 16:54:15 +01:00
Alexander Shabalin 9e99932b24 Add a check for single-thread mutator (#4665) 2021-02-01 16:54:14 +01:00
Igor Chevdar c12d79176a [runtime] Fixed UB with signed overflow 2021-02-01 16:54:14 +01:00
Igor Chevdar c8633d8bda [runtime] Vectorized polynomial hash for strings
This is for consistency with Kotlin/JVM
2021-02-01 16:54:14 +01:00
Alexander Shabalin d84c83d7da Extract FreezeHooks and make them testable (#4654) 2021-02-01 16:54:14 +01:00
Alexander Shabalin e2280ce855 Add a bunch of symbols required by Kotlin runtime part (#4655) 2021-02-01 16:54:14 +01:00
Alexander Shabalin 51f70254f7 Use non-terminating TODO for safepoints (#4659) 2021-02-01 16:54:14 +01:00
Alexander Shabalin b06a870011 Trust mimalloc to be thread safe (#4649) 2021-01-26 17:38:03 +03:00
Alexander Shabalin d633b1c545 Mark safe points in code generator (#4640) 2021-01-26 17:38:03 +03:00
Alexander Shabalin 687cf20d7d Deal with FrameOverlay in the new mm (#4646) 2021-01-26 17:38:03 +03:00
Alexander Shabalin 77e2b9f9a0 Disable running checkers by default (#4644)
* Make checkers be disabled by default

* Allow running checkers in test launcher
2021-01-26 17:38:03 +03:00
Alexander Shabalin 6cc60ad6a2 Support sanitizers in runtime tests (#4622) 2021-01-26 17:38:02 +03:00
Alexander Shabalin a362742a37 Enable C++17 (#4623) 2021-01-19 13:37:37 +03:00
Alexander Shabalin 411506127c Fix RuntimeCheck usage (#4638) 2021-01-19 13:37:37 +03:00
Svyatoslav Scherbina acbdd7f8ae Improve discoverability of KT-42254 in case of runtime assertion 2021-01-19 13:37:36 +03:00
Alexander Shabalin d57802633c Use Alloc.h everywhere (#4611) 2021-01-19 13:37:36 +03:00
Alexander Shabalin 3eb2ec5cc1 Use clang format attribute (#4624) 2021-01-19 13:37:36 +03:00
Alexander Shabalin adf80418af Use common pattern for function-like macro (#4625) 2021-01-19 13:37:36 +03:00
Alexander Shabalin 32e3deace1 Enable unused-function warning for runtime (#4628) 2021-01-19 13:37:36 +03:00
Abduqodiri Qurbonzoda 8bb76c67e3 Straighten Char-to-code and Char-to-digit conversions out #KT-23451
(cherry picked from commit 4c0c46e87def97f9102da9df72331ebcfee09aab)
2021-01-12 15:56:42 +03:00
Abduqodiri Qurbonzoda a4155e8fc4 Locale-agnostic case conversions by default #KT-43023
(cherry picked from commit 1b565500b935239484580005a31ae2630c61b25d)
2021-01-12 15:56:42 +03:00
Alexander Shabalin 39805c72dc Remove forced dependency of new MM on mimalloc (#4617) 2020-12-28 22:55:51 +03:00
Alexander Shabalin d46b2e927c Add ExtraObjectData (#4602) 2020-12-28 22:55:51 +03:00
Igor Chevdar a6c119c3cd [runtime] Old impl of RuntimeAssert for backward compatibility 2020-12-28 22:55:51 +03:00
Alexander Shabalin 72fc5f5aee Sketch mm::ObjectFactory (#4583) 2020-12-28 22:55:50 +03:00
SvyatoslavScherbina ce764d78ab Fix WorkerBoundReference kdoc 2020-12-21 16:18:37 +01:00
Sergey Bogolepov 3068c230f9 Enable caches for linux_x64 2020-12-21 16:18:37 +01:00
Ilya Matveev e3bc247557 [runtime] Support formatted output in the runtime assertions 2020-12-21 16:18:37 +01:00
Ilya Matveev 6fb5e43f62 [runtime] Introduce thread states 2020-12-21 16:18:37 +01:00
Igor Chevdar 9b84d72a44 [objc][codegen] Fixed bug with calling fake override interface methods 2020-12-21 16:15:11 +01:00
Alexander Shabalin 92f8eff958 Cleanup Stubs.cpp (#4593) 2020-12-21 16:15:11 +01:00
Alexander Shabalin a41e1cb66b Refactor Mutex.hpp (#4594)
* Remove `LockGuard` in favour of `std::lock_guard`
* Rename `SimpleMutex` to `SpinLock`
2020-12-14 15:31:10 +01:00
Alexander Shabalin 658530e820 StableRef registry (#4567) 2020-12-14 15:25:37 +01:00
Alexander Shabalin c582612bd7 Restore runtimeState value in deinitRuntime (#4587) 2020-12-14 15:25:37 +01:00