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

Remove referent checks from compiled unsafe intrinsics

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 12
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      Description

      Our compilers insert runtime-checks to check if G1 pre barriers are needed when accessing referent fields through the unsafe API. But then again, using unsafe is unsafe as the name suggests, and there were never any guarantees that this should work. I suggest removing these checks to simplify the code and increase performance for the common case.

        Attachments

          Activity

            People

            • Assignee:
              eosterlund Erik Österlund
              Reporter:
              eosterlund Erik Österlund
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: