Files
kotlin-fork/plugins/atomicfu/atomicfu-compiler/testData/box/atomics_basic/LockFreeLongCounterTest.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

45 lines
1.8 KiB
Plaintext
Vendored

@kotlin.Metadata
final class LockFreeLongCounter$Inner {
// source: 'LockFreeLongCounterTest.kt'
synthetic final field this$0: LockFreeLongCounter
public method <init>(p0: LockFreeLongCounter): void
public final method getFromOuter(): long
private final inner class LockFreeLongCounter$Inner
}
@kotlin.Metadata
public final class LockFreeLongCounter {
// source: 'LockFreeLongCounterTest.kt'
private synthetic final static field counter$volatile$FU: java.util.concurrent.atomic.AtomicLongFieldUpdater
private synthetic volatile field counter$volatile: long
static method <clinit>(): void
public method <init>(): void
public synthetic final static method access$getCounter$volatile$FU(): java.util.concurrent.atomic.AtomicLongFieldUpdater
public final method add2(): long
public final method get(): long
private synthetic final static method getCounter$volatile$FU(): java.util.concurrent.atomic.AtomicLongFieldUpdater
private synthetic final method getCounter$volatile(): long
public final method getInner(): long
public final method increment(): long
private synthetic final method setCounter$volatile(p0: long): void
public final method setM2(): void
private final inner class LockFreeLongCounter$Inner
}
@kotlin.Metadata
public final class LockFreeLongCounterTest {
// source: 'LockFreeLongCounterTest.kt'
public method <init>(): void
public final method testAdd2(): void
public final method testBasic(): void
public final method testGetInner(): void
public final method testSetM2(): void
private final method testWith(p0: kotlin.jvm.functions.Function1): void
}
@kotlin.Metadata
public final class LockFreeLongCounterTestKt {
// source: 'LockFreeLongCounterTest.kt'
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
}