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

Extend DCmdArgument parsing for supporting multiple integral types

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: hs23
    • Fix Version/s: hs23
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      svc
    • CPU:
      generic
    • OS:
      generic

      Description

      There would be value in extending the supported datatypes in DCmdArgument parsing, esp for integrals - this can be done quite easily reworking the parser to support templated integral types.

      This way we can have more generic way of stating which datatypes to be used by the DCmd framework,

      for example:

      simple:

      DCmdArgument<jint> some_jint_arg(
          "jint_arg", "Total jint size of something",
          "", false, "10");

      complex:

      DCmdArgument<MemorySizeArgument<jlong>> complexSizeType(
          "my_complex_jlong_size_type", "complex jlong type",
          "", false, "10000000000");

      DCmdArgument<MemorySizeArgument<size_t>> complexSizeType2(
          "my_complex_size_t_size_type", "complex size_t type",
          "", false, "10000000");


      /Markus

        Attachments

          Activity

            People

            • Assignee:
              mgronlun Markus Grönlund
              Reporter:
              mgronlun Markus Grönlund
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: