Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8303213

Avoid AtomicReference in TextComponentPrintable

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P5
    • 21
    • None
    • client-libs

    Description

      Field 'sun.swing.text.TextComponentPrintable#frc' is declared as 'AtomicReference<FontRenderContext> frc'.
      But only get() and set() calls are used on this field.
      We can migrate to use volatile field directly. It simplifies code a bit.

      Attachments

        Issue Links

          Activity

            People

              aturbanov Andrey Turbanov
              aturbanov Andrey Turbanov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: