XStream
  1. XStream
  2. XSTR-742

CompositeClassLoader and ClassLoaderReference should register themselves as parallel capable

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.4
    • Fix Version/s: 1.4.5
    • Component/s: Core
    • Labels:
      None
    • JDK version and platform:
      Oracle Java7

      Description

      com.thoughtworks.xstream.core.util.ClassLoaderReference is referring another ClassLoader and does not add any restriction itself.
      As such, it should call java.lang.ClassLoader.registerAsParallelCapable() in its static initializer to mark itself as parallel capable, which allows the VM to use it concurrently.
      This is new with Java7 and not calling the method introduces an unneeded performance loss.
      See ClassLoader's Javadoc for more background info.

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Rico Neubauer
        • Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: