[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>
This commit is contained in:
+49
@@ -0,0 +1,49 @@
|
||||
@kotlin.Metadata
|
||||
final class LockFreeQueue$Node {
|
||||
// source: 'LockFreeQueueTest.kt'
|
||||
private synthetic final static field next$volatile$FU: java.util.concurrent.atomic.AtomicReferenceFieldUpdater
|
||||
private synthetic volatile field next$volatile: java.lang.Object
|
||||
private final field value: int
|
||||
static method <clinit>(): void
|
||||
public method <init>(p0: int): void
|
||||
public synthetic final static method access$getNext$volatile$FU(): java.util.concurrent.atomic.AtomicReferenceFieldUpdater
|
||||
private synthetic final static method getNext$volatile$FU(): java.util.concurrent.atomic.AtomicReferenceFieldUpdater
|
||||
private synthetic final method getNext$volatile(): java.lang.Object
|
||||
public final method getValue(): int
|
||||
private synthetic final method setNext$volatile(p0: java.lang.Object): void
|
||||
private final inner class LockFreeQueue$Node
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class LockFreeQueue {
|
||||
// source: 'LockFreeQueueTest.kt'
|
||||
private synthetic final static field head$volatile$FU: java.util.concurrent.atomic.AtomicReferenceFieldUpdater
|
||||
private synthetic volatile field head$volatile: java.lang.Object
|
||||
private synthetic final static field tail$volatile$FU: java.util.concurrent.atomic.AtomicReferenceFieldUpdater
|
||||
private synthetic volatile field tail$volatile: java.lang.Object
|
||||
static method <clinit>(): void
|
||||
public method <init>(): void
|
||||
public final method dequeue(): int
|
||||
public final method enqueue(p0: int): void
|
||||
private synthetic final static method getHead$volatile$FU(): java.util.concurrent.atomic.AtomicReferenceFieldUpdater
|
||||
private synthetic final method getHead$volatile(): java.lang.Object
|
||||
private synthetic final static method getTail$volatile$FU(): java.util.concurrent.atomic.AtomicReferenceFieldUpdater
|
||||
private synthetic final method getTail$volatile(): java.lang.Object
|
||||
private synthetic final method loop$atomicfu(p0: java.util.concurrent.atomic.AtomicReferenceFieldUpdater, p1: kotlin.jvm.functions.Function1, p2: java.lang.Object): void
|
||||
private synthetic final method setHead$volatile(p0: java.lang.Object): void
|
||||
private synthetic final method setTail$volatile(p0: java.lang.Object): void
|
||||
private final inner class LockFreeQueue$Node
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class LockFreeQueueTest {
|
||||
// source: 'LockFreeQueueTest.kt'
|
||||
public method <init>(): void
|
||||
public final method testBasic(): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class LockFreeQueueTestKt {
|
||||
// source: 'LockFreeQueueTest.kt'
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Reference in New Issue
Block a user