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

G1: Replace HR_FORMAT and HR_FORMAT_PARAMS with suitable HeapRegion service method

XMLWordPrintable

    • gc
    • generic
    • generic

      The HR_FORMAT and HR_FORMAT_PARAMS macros are used to print out certain uniform values from a given HeapRegion instance. The first one constructs a format-string (which can be concatenated with other constant format strings, and the latter supplies the arguments to the format string and is used in the argument lists of print statments.

      These macros are awkward to to use and should be replaced with a suitable service method in the HeapRegion class (either something like a to_string() or print_extended() method).

      A couple of issues need to be resolved:

      The current macros require no storage for the format string (it is a constant) and so any replacement should have a zero net effect on storage.

      The current macros can be used in the midst of a larger print statement. It would be desirable to mainatin this feature. It makes the macros very easy to use.

            lkorinth Leo Korinth
            johnc John Cuthbertson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: