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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 9
    • 9
    • hotspot
    • gc
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: