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

String copy intrinsics should zero array in case of tightly coupled allocation

    Details

    • Type: Bug
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: 9, 10
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      Description

      LibraryCallKit::inline_string_copy() and LibraryCallKit::inline_string_getCharsU() use LibraryCallKit::tightly_coupled_allocation() to skip zeroing the array elements of a tightly coupled array allocation. However, the intrinsics do not take care of zeroing remaining array elements not affected by the intrinsic operation.
      Currently, this is not a problem because all (String API internal) usages of the intrinsics that have a tightly coupled allocation make sure that the entire array is initialized. However, we should fix this to avoid potential bugs.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                thartmann Tobias Hartmann
                Reporter:
                thartmann Tobias Hartmann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: