jcstress: Shortcut counter copy path for copyable results

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None

      In jcstress, @Result instances can be reset in place. Which means that Counter has to do defensive copies before inserting results as keys. It now does it with serialization-deserialization stub. This takes about 10 ms to initialize on first key insertion. Fortunately, we can do better: if results are implicitly copyable (i.e. have only primitive fields), we can copy them directly.

            Assignee:
            Aleksey Shipilev
            Reporter:
            Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: