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

VMError::print_native_stack copies frame argument unnecessarily

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • 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.

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

              Created:
              Updated: