Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8319898

test/jdk/java/lang/instrument/NativeMethodPrefixAgent.java creates unverifiable byte code

XMLWordPrintable

      Running the test java/lang/instrument/NativeMethodPrefixAgent.java https://github.com/openjdk/jdk/blob/master/test/jdk/java/lang/instrument/NativeMethodPrefixAgent.java with -Xverify:all fails pretty quickly with

      #########
      STDERR:
      Error: LinkageError occurred while loading main class com.sun.javatest.regtest.agent.MainWrapper
              java.lang.VerifyError: Operand stack overflow
      Exception Details:
        Location:
          sun/nio/fs/UnixFileSystem.wrapped_tr1_wrapped_tr2_bufferedCopy0(IIJIJ)V @15: lload
        Reason:
          Exceeded max stack size.
        Current Frame:
          bci: @15
          flags: { }
          locals: { integer, integer, long, long_2nd, integer, long, long_2nd }
          stack: { integer, integer, long, long_2nd, integer }
        Bytecode:
          0000000: 1302 a103 b802 9915 0015 0116 0215 0416
          0000010: 05b8 02a3 b1
      #########

            Unassigned Unassigned
            davleopo David Leopoldseder
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: