small typo in ciReplay code

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 9
    • Affects Version/s: 8u74, 9
    • Component/s: hotspot
    • None
    • b122
    • generic
    • generic

      When we dump replay data for boolean fields we use integer value StaticFinalFieldPrinter::do_fields() :
              case T_BOOLEAN: _out->print_cr("%d", mirror->bool_field(fd->offset())); break;

      When we read it back during rerun we use atol() instead of atoi():
            } else if (strcmp(field_signature, "Z") == 0) {
              int value = atol(string_value);
              java_mirror->bool_field_put(fd.offset(), value);

      Some C++ compilers may complain that we loose value when casting long to int. We should use atoi() here as for other integers fields.

            Assignee:
            Jamsheed C M (Inactive)
            Reporter:
            Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: