VMError::print_native_stack copies frame argument unnecessarily

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: hotspot

      VMError::print_native_stack takes the frame argument by value, even though it's a non-trivial structure (4 pointers, int, bool). It should be passed by const reference.

      Unfortunately, changing it is not trivial, because of const-correctness propagation. There are a number of functions on frame that aren't sufficiently const-qualified.

            Assignee:
            Unassigned
            Reporter:
            Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: