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

[JVMCI] StackTraceElement::decode should use the original Method

    Details

    • Subcomponent:
    • Resolved In Build:
      b27

      Backports

        Description

        The JDK14 version of StackTraceElement::decode is based on the JDK8 code which contains mixed usages of method->constants() and method->method_holder()->constants() assuming they point to the same thing. In the case of anonymous methods this isn't true. Usually this isn't a problem but if CDS is enabled the version flag of method->method_holder()->constants() is non-zero but version of method->constants() is 0 which causes the code to switch constants pools and it reads garbage. JDK-8140685 refactored this code to remove this logic and the JVMCI version of this code should be converted to use the same scheme.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kvn Vladimir Kozlov
                  Reporter:
                  never Tom Rodriguez
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: