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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • hotspot
    • gc
    • b156

        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.

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

                Created:
                Updated:
                Resolved: