Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-760

ThreadAction.currentAction uses Exception for branch logic

    XMLWordPrintable

    Details

      Description

      Using exceptions for logic is a performance bottleneck.

      if (txs != null)
      {
      try

      { return (BasicAction) txs.peek(); }

      catch (EmptyStackException e)
      {
      }
      }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jhalliday Jonathan Halliday
                Reporter:
                wolfc Carlo de Wolf
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: