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

java_lang_Throwable::fill_in_stack_trace should use Handler for "cont"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-loom
    • repo-loom
    • hotspot
    • None

      Method java_lang_Throwable::fill_in_stack_trace uses variable cont without handler so it could be collected.

      The method fill_in_stack_ calls "bt.push(method, bci, contScopeName, CHECK);"
      https://github.com/lmesnik/loom/blob/fibers/src/hotspot/share/classfile/javaClasses.cpp#L2753
      which calls expand
      https://github.com/lmesnik/loom/blob/fibers/src/hotspot/share/classfile/javaClasses.cpp#L2353
      were GC might happened and cont becomes invalid.

            lmesnik Leonid Mesnik
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: