Files
kotlin-fork/plugins/atomicfu/atomicfu-compiler/testData/box/atomics_basic/MultiInitTest.txt
T
mvicsokolova 5c5367d377 [atomicfu-JVM] Preparation for commonization of JVM and K/N transformers
The following updates in the JVM/IR plugin were made:
* Lots of refactoring with preparation for K/N support: commonization of transformations.
* Improved error handling (checks for visibility constraints, appending message about usage constraints in case of an error).
* Explicit requirements for the visibility of atomic properties: to prevent leaking they should be private/internal or be members of private/internal classes.
* Fixed visibility of generated properties: volatile properties are always private and atomic updaters have the same visibility as the original atomic property.
* Volatile fields are generated from scratch and original atomic properties are removed.
* Delegated properties support is fixed (only declaration in the same scope is allowed).
* Non-inline atomic extensions are forbidden.
* For top-level atomics: only one wrapper class per file (with corresponding visibility) is generated.
* Bug fixes.

The corresponding tickets: 
https://github.com/Kotlin/kotlinx-atomicfu/issues/322
KT-60528



Merge-request: KT-MR-10579
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com>
2023-07-20 13:59:23 +00:00

43 lines
1.8 KiB
Plaintext
Vendored

@kotlin.Metadata
public final class MultiInit$Companion {
// source: 'MultiInitTest.kt'
private method <init>(): void
public synthetic method <init>(p0: kotlin.jvm.internal.DefaultConstructorMarker): void
public final method foo(): void
public final inner class MultiInit$Companion
}
@kotlin.Metadata
public final class MultiInit {
// source: 'MultiInitTest.kt'
public final static @org.jetbrains.annotations.NotNull field Companion: MultiInit$Companion
private synthetic final static field a$volatile$FU: java.util.concurrent.atomic.AtomicIntegerFieldUpdater
private synthetic volatile field a$volatile: int
private synthetic final static field b$volatile$FU: java.util.concurrent.atomic.AtomicIntegerFieldUpdater
private synthetic volatile field b$volatile: int
static method <clinit>(): void
public method <init>(): void
private synthetic final static method getA$volatile$FU(): java.util.concurrent.atomic.AtomicIntegerFieldUpdater
private synthetic final method getA$volatile(): int
private synthetic final static method getB$volatile$FU(): java.util.concurrent.atomic.AtomicIntegerFieldUpdater
private synthetic final method getB$volatile(): int
public final method incA(): int
public final method incB(): int
private synthetic final method setA$volatile(p0: int): void
private synthetic final method setB$volatile(p0: int): void
public final inner class MultiInit$Companion
}
@kotlin.Metadata
public final class MultiInitTest {
// source: 'MultiInitTest.kt'
public method <init>(): void
public final method testBasic(): void
}
@kotlin.Metadata
public final class MultiInitTestKt {
// source: 'MultiInitTest.kt'
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
}