[K/N] Introduce intrinsics that atomically update array elements

Supported atomic update of elements for IntArray, LongArray and Array<T>
See KT-58360

Merge-request: KT-MR-11020
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com>
This commit is contained in:
mvicsokolova
2023-07-12 14:32:36 +00:00
committed by Space Team
parent 20c53fc15d
commit d9fa9c1b3b
13 changed files with 598 additions and 54 deletions
@@ -40127,6 +40127,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/volatile"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("atomicArrayIntrinsics.kt")
public void testAtomicArrayIntrinsics() throws Exception {
runTest("compiler/testData/codegen/box/volatile/atomicArrayIntrinsics.kt");
}
@Test
@TestMetadata("crossModuleIntrinsic.kt")
public void testCrossModuleIntrinsic() throws Exception {
@@ -41161,6 +41161,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/volatile"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("atomicArrayIntrinsics.kt")
public void testAtomicArrayIntrinsics() throws Exception {
runTest("compiler/testData/codegen/box/volatile/atomicArrayIntrinsics.kt");
}
@Test
@TestMetadata("crossModuleIntrinsic.kt")
public void testCrossModuleIntrinsic() throws Exception {
@@ -39611,6 +39611,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/volatile"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("atomicArrayIntrinsics.kt")
public void testAtomicArrayIntrinsics() throws Exception {
runTest("compiler/testData/codegen/box/volatile/atomicArrayIntrinsics.kt");
}
@Test
@TestMetadata("crossModuleIntrinsic.kt")
public void testCrossModuleIntrinsic() throws Exception {
@@ -40128,6 +40128,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/volatile"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("atomicArrayIntrinsics.kt")
public void testAtomicArrayIntrinsics() throws Exception {
runTest("compiler/testData/codegen/box/volatile/atomicArrayIntrinsics.kt");
}
@Test
@TestMetadata("crossModuleIntrinsic.kt")
public void testCrossModuleIntrinsic() throws Exception {