Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901899

@Contended detection checks are eagerly initializing all classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • None
    • tools
    • None

      ----- [FAILED] Testing @Contended works on all results and infra objects
      SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
      SLF4J: Defaulting to no-operation (NOP) logger implementation
      SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
      Exception in thread "main" java.lang.UnsatisfiedLinkError: io.netty.channel.unix.ErrorsStaticallyReferencedJniMethods.errnoENOTCONN()I
          at io.netty.channel.unix.ErrorsStaticallyReferencedJniMethods.errnoENOTCONN(Native Method)
          at io.netty.channel.unix.Errors.<clinit>(Errors.java:36)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:264)
          at org.openjdk.jcstress.util.Reflections.getClasses(Reflections.java:64)
          at org.openjdk.jcstress.vm.ContendedTestMain.main(ContendedTestMain.java:44)

      This is because we use Class.forName(String), like there is no tomorrow.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: