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

Avoid cast_to_oop from char*

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • 15
    • hotspot
    • None
    • gc
    • b13

      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.

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

              Created:
              Updated:
              Resolved: