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

Consider removing UseMemSetInBOT

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • CPU:
      sparc_64
    • OS:
      solaris

      Description

      I'd suggest that we consider removing the VM flag UseMemSetInBOT. This is a dangerous flag to use as it will cause the VM to potentially crash on Sparc T4 (and later). There's currently a big warning printed when this is enabled by the user, but still, I don't see why anyone would want to ever enable this.

      Further, after JDK-8039042 the name of this flag is slightly misleading, as it's not only used to control how the block offset table is initialized, but also how the cardtable is initialized. So instead of having a VM flag named UseMemSetInBOT we should have an internal state called memset_is_thread_safe (or something similar) which can be used by all cases where the memset() semantics is of interest.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kbarrett Kim Barrett
                Reporter:
                pliden Per Liden
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: