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

ThreadAction.currentAction uses Exception for branch logic

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 4.12.0, 4.6.1.CP06
    • 4.11.0, 4.6.1.CP05
    • Transaction Core
    • None

    Description

      Using exceptions for logic is a performance bottleneck.

      if (txs != null)
      {
      try

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

      catch (EmptyStackException e)
      {
      }
      }

      Attachments

        Activity

          People

            rhn-engineering-jhallida Jonathan Halliday
            rhn-engineering-cdewolf Carlo de Wolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: