Skip to content

Commit

Permalink
Add missing @Contened annotation to Stripped64::Cell
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Jul 4, 2023
1 parent ae22ac4 commit eea08d1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ import scala.scalanative.runtime.{fromRawPtr, Intrinsics}

@SuppressWarnings(Array("serial"))
private[atomic] object Striped64 {

/** Currently, Contended annotation is not supported. */
// @jdk.internal.vm.annotation.Contended
final private[atomic] class Cell private[atomic] (
type Contended = scala.scalanative.annotation.align
@Contended final private[atomic] class Cell private[atomic] (
@volatile private[atomic] var value: Long
) {

Expand Down

0 comments on commit eea08d1

Please sign in to comment.