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

Avoid cast_to_oop from char*

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b13

      Description

      There are many places that call cast_to_oop with an argument of type "address" (which is equivalent to uint8_t*). There appears to be only one call (in a gtest) with an argument of type char*, and that place probably ought to be using "address". Reducing the number of supported types for cast_to/from_oop makes the code easier to understand and may simplify further cleanups, perhaps including explicit enumeration and limitation of the supported conversions.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kbarrett Kim Barrett
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: