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

Get rid of the humanReadableByteCount() method in openjdk/hotspot

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b156

      Backports

        Description

        The following tests:
        hotspot/test/gc/g1/TestHumongousShrinkHeap.java
        hotspot/test/gc/g1/TestShrinkDefragmentedHeap.java
        hotspot/test/gc/parallel/TestDynShrinkHeap.java

        implement the method humanReadableByteCount which body was copied from the Stack Overflow site: https://stackoverflow.com/a/3758880

        It's just a few lines of code, but it could cause legal issues. The method should be either re-implemented or removed.

        Besides the potential legal issues, duplicating a code is not a good practice.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dfazunen Dmitry Fazunenko (Inactive)
                  Reporter:
                  dfazunen Dmitry Fazunenko (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: