Uploaded image for project: 'Hibernate ORM'
  1. HHH-12511

Make ASTPrinter threadsafe and have code reuse their instances

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 5.3.0.CR2
    • Components: hibernate-core
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      Description

      Currently ASTPrinter is not thredsafe and takes a construction parameter which would affect its output, making it hard to reuse. Turns out this parameter is never used across the whole code base, so cleaning this up opens opportunity to avoid some more allocations I spotted profiling the testsuite.

        Attachments

          Activity

            People

            • Assignee:
              sanne Sanne Grinovero
              Reporter:
              sanne Sanne Grinovero
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: