5c5367d377
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>
48 lines
2.5 KiB
Plaintext
Vendored
48 lines
2.5 KiB
Plaintext
Vendored
@kotlin.Metadata
|
|
final class LockFreeStack$Node {
|
|
// source: 'LockFreeStackTest.kt'
|
|
private final @org.jetbrains.annotations.Nullable field next: LockFreeStack$Node
|
|
private final field value: java.lang.Object
|
|
public method <init>(p0: java.lang.Object, @org.jetbrains.annotations.Nullable p1: LockFreeStack$Node): void
|
|
public final @org.jetbrains.annotations.Nullable method getNext(): LockFreeStack$Node
|
|
public final method getValue(): java.lang.Object
|
|
private final inner class LockFreeStack$Node
|
|
}
|
|
|
|
@kotlin.Metadata
|
|
public final class LockFreeStack {
|
|
// source: 'LockFreeStackTest.kt'
|
|
private synthetic final static field top$volatile$FU: java.util.concurrent.atomic.AtomicReferenceFieldUpdater
|
|
private synthetic volatile field top$volatile: java.lang.Object
|
|
static method <clinit>(): void
|
|
public method <init>(): void
|
|
public final method clear(): void
|
|
private synthetic final method getAndUpdate$atomicfu(p0: java.util.concurrent.atomic.AtomicReferenceFieldUpdater, p1: kotlin.jvm.functions.Function1, p2: java.lang.Object): java.lang.Object
|
|
private synthetic final static method getTop$volatile$FU(): java.util.concurrent.atomic.AtomicReferenceFieldUpdater
|
|
private synthetic final method getTop$volatile(): java.lang.Object
|
|
public final method isEmpty(): boolean
|
|
private synthetic final method loop$atomicfu(p0: java.util.concurrent.atomic.AtomicReferenceFieldUpdater, p1: kotlin.jvm.functions.Function1, p2: java.lang.Object): void
|
|
public final @org.jetbrains.annotations.Nullable method popLoop(): java.lang.Object
|
|
public final @org.jetbrains.annotations.Nullable method popUpdate(): java.lang.Object
|
|
public final method pushLoop(p0: java.lang.Object): void
|
|
public final method pushUpdate(p0: java.lang.Object): void
|
|
private synthetic final method setTop$volatile(p0: java.lang.Object): void
|
|
private synthetic final method update$atomicfu(p0: java.util.concurrent.atomic.AtomicReferenceFieldUpdater, p1: kotlin.jvm.functions.Function1, p2: java.lang.Object): void
|
|
private final inner class LockFreeStack$Node
|
|
}
|
|
|
|
@kotlin.Metadata
|
|
public final class LockFreeStackTest {
|
|
// source: 'LockFreeStackTest.kt'
|
|
public method <init>(): void
|
|
public final method testClear(): void
|
|
public final method testPushPopLoop(): void
|
|
public final method testPushPopUpdate(): void
|
|
}
|
|
|
|
@kotlin.Metadata
|
|
public final class LockFreeStackTestKt {
|
|
// source: 'LockFreeStackTest.kt'
|
|
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
|
}
|