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
d633b1c545
Mark safe points in code generator ( #4640 )
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
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
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
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
Alexander Shabalin
783517dbe8
Fix unchecked runtime shutdown ( #4575 )
2020-12-14 15:25:37 +01:00
SvyatoslavScherbina
62272f54c1
Fix isa swizzling for Kotlin subclasses of Obj-C classes
...
Don't rely on indexed ivars of instance's isa since isa swizzling
replaces it. Use method instead, it works on the replacement too
(if it is a subclass of the original isa).
#KT-42482 Fixed.
2020-12-14 15:25:37 +01:00
Alexander Shabalin
ebae52e2fb
Fix globals registry ( #4557 )
...
* Fix GlobalsRegistry
* Make Runtime tests on Windows faster
2020-12-14 15:25:36 +01:00
Alexander Shabalin
2057e5c8f1
Tracking globals ( #4542 )
2020-12-14 15:25:36 +01:00
Alexander Shabalin
5fc17ce5fa
Tweak TLS init/deinit ( #4551 )
...
* Delete the entire TLS in one go
* Put TLS allocation separately
* Keep TLS in a single array
2020-12-14 15:25:36 +01:00
Alexander Shabalin
83de4e174a
Keep MemoryState empty. ( #4544 )
2020-11-28 21:13:48 +01:00
Alexander Shabalin
e548bde89f
Thread registry ( #4518 )
2020-11-28 21:13:46 +01:00
Alexander Shabalin
e7ab525213
Add CppSupport with backported utilities ( #4525 )
2020-11-28 21:11:57 +01:00
Alexander Shabalin
0dfc99ab1a
Add MoveOnly and Pinned ( #4526 )
2020-11-28 21:06:58 +01:00
Alexander Shabalin
ee508efb23
Add a switch to destroy runtime only on shutdown ( #4482 )
2020-11-28 21:01:54 +01:00
Alexander Shabalin
91186b4145
Extract Kotlin_shutdownRuntime ( #4497 )
2020-11-28 20:56:41 +01:00
Alexander Shabalin
8dc5b95337
Move main thread check to legacy mm ( #4483 )
2020-11-28 20:48:59 +01:00
Alexander Shabalin
4297b521e4
Remove unneeded zeroing TLS ( #4480 )
2020-11-28 20:48:55 +01:00
Alexander Shabalin
1a97a6ca1a
Remove unneeded ArraysTest.cpp ( #4479 )
2020-11-28 20:47:34 +01:00
SvyatoslavScherbina
47c606f1eb
Wrap worker jobs to autoreleasepool
...
#KT-42822 Fixed.
2020-11-28 19:44:18 +01:00
Stanislav Erokhin
f624800b84
Move everything under kotlin-native folder
...
I was forced to manually do update the following files, because otherwise
they would be ignored according .gitignore settings. Probably they
should be deleted from repo.
Interop/.idea/compiler.xml
Interop/.idea/gradle.xml
Interop/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_runtime_1_0_3.xml
Interop/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_0_3.xml
Interop/.idea/modules.xml
Interop/.idea/modules/Indexer/Indexer.iml
Interop/.idea/modules/Runtime/Runtime.iml
Interop/.idea/modules/StubGenerator/StubGenerator.iml
backend.native/backend.native.iml
backend.native/bc.frontend/bc.frontend.iml
backend.native/cli.bc/cli.bc.iml
backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2Native.kt
backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2NativeCompilerArguments.kt
backend.native/tests/link/lib/foo.kt
backend.native/tests/link/lib/foo2.kt
backend.native/tests/teamcity-test.property
2020-10-27 21:00:28 +03:00