An object describing configuration of the Scala Native semantics.
- Companion:
- object
Value members
Abstract methods
Describes Behaviour of final fields and their complaince with the Java Memory Model. The outputs of the program would depend of compliance level:
Describes Behaviour of final fields and their complaince with the Java Memory Model. The outputs of the program would depend of compliance level:
- JVMMemoryModelCompliance.Strict all final fields are synchronized - ensures safe publication,but it might lead to runtime performance overhead.
- JVMMemoryModelCompliance.None final fields are never synchronized - no runtime overhead when accessing final fields, but it might lead to unexpected state in highly concurrent programs.
- JVMMemoryModelCompliance.Relaxed (default) only fields marked with scala.scalanative.annotation.safePublish are synchronized.