public class com.oracle.truffle.api.instrumentation.test.DeadlockTest
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.oracle.truffle.api.instrumentation.test.DeadlockTest
  super_class: java.lang.Object
{
  private static final java.lang.String CODE_WAIT;
    descriptor: Ljava/lang/String;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: "wait materialized"

  private static final java.lang.String CODE_LATCH;
    descriptor: Ljava/lang/String;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: "getExecLatch"

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.oracle.truffle.api.instrumentation.test.DeadlockTest this
         0: .line 83
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // com.oracle.truffle.api.instrumentation.test.DeadlockTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest;

  public void testNoDeadlockOnSourceLoadBindingInstall();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.oracle.truffle.api.instrumentation.test.DeadlockTest this
         0: .line 90
            aload 0 /* this */
            iconst_1
            invokevirtual com.oracle.truffle.api.instrumentation.test.DeadlockTest.testNoDeadlockOnBindingInstall:(Z)V
         1: .line 91
            return
        end local 0 // com.oracle.truffle.api.instrumentation.test.DeadlockTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest;
    Exceptions:
      throws java.lang.InterruptedException
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void testNoDeadlockOnSourceExecuteBindingInstall();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.oracle.truffle.api.instrumentation.test.DeadlockTest this
         0: .line 95
            aload 0 /* this */
            iconst_0
            invokevirtual com.oracle.truffle.api.instrumentation.test.DeadlockTest.testNoDeadlockOnBindingInstall:(Z)V
         1: .line 96
            return
        end local 0 // com.oracle.truffle.api.instrumentation.test.DeadlockTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest;
    Exceptions:
      throws java.lang.InterruptedException
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  private void testNoDeadlockOnBindingInstall(boolean);
    descriptor: (Z)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=6, locals=10, args_size=2
        start local 0 // com.oracle.truffle.api.instrumentation.test.DeadlockTest this
        start local 1 // boolean load
         0: .line 99
            invokestatic org.graalvm.polyglot.Engine.create:()Lorg/graalvm/polyglot/Engine;
            astore 2 /* engine */
        start local 2 // org.graalvm.polyglot.Engine engine
         1: .line 100
            aload 2 /* engine */
            invokevirtual org.graalvm.polyglot.Engine.getInstruments:()Ljava/util/Map;
            ldc "testNoDeadlock"
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.graalvm.polyglot.Instrument
            astore 3 /* instrument */
        start local 3 // org.graalvm.polyglot.Instrument instrument
         2: .line 101
            aload 3 /* instrument */
            ldc Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest$TestDeadlockInstrument;
            invokevirtual org.graalvm.polyglot.Instrument.lookup:(Ljava/lang/Class;)Ljava/lang/Object;
            checkcast com.oracle.truffle.api.instrumentation.test.DeadlockTest$TestDeadlockInstrument
            astore 4 /* deadlockInstrument */
        start local 4 // com.oracle.truffle.api.instrumentation.test.DeadlockTest$TestDeadlockInstrument deadlockInstrument
         3: .line 102
            new com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread
            dup
            aload 0 /* this */
            aload 2 /* engine */
            aload 4 /* deadlockInstrument */
            getfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$TestDeadlockInstrument.instrumentEnv:Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;
            iload 1 /* load */
            invokespecial com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.<init>:(Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest;Lorg/graalvm/polyglot/Engine;Lcom/oracle/truffle/api/instrumentation/TruffleInstrument$Env;Z)V
            astore 5 /* instrumentationThread */
        start local 5 // com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread instrumentationThread
         4: .line 104
            iconst_0
            anewarray java.lang.String
            invokestatic org.graalvm.polyglot.Context.newBuilder:([Ljava/lang/String;)Lorg/graalvm/polyglot/Context$Builder;
            aload 2 /* engine */
            invokevirtual org.graalvm.polyglot.Context$Builder.engine:(Lorg/graalvm/polyglot/Engine;)Lorg/graalvm/polyglot/Context$Builder;
            invokevirtual org.graalvm.polyglot.Context$Builder.build:()Lorg/graalvm/polyglot/Context;
            astore 6 /* context */
        start local 6 // org.graalvm.polyglot.Context context
         5: .line 105
            ldc "truffle-locking-test-language"
            ldc "test"
            invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
            astore 7 /* source1 */
        start local 7 // org.graalvm.polyglot.Source source1
         6: .line 107
            aload 6 /* context */
            aload 7 /* source1 */
            invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
            pop
         7: .line 110
            aload 5 /* instrumentationThread */
            invokevirtual com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.start:()V
         8: .line 112
            ldc "truffle-locking-test-language"
            ldc "wait materialized"
            invokestatic org.graalvm.polyglot.Source.create:(Ljava/lang/String;Ljava/lang/CharSequence;)Lorg/graalvm/polyglot/Source;
            astore 8 /* source2 */
        start local 8 // org.graalvm.polyglot.Source source2
         9: .line 113
            aload 6 /* context */
            aload 8 /* source2 */
            invokevirtual org.graalvm.polyglot.Context.eval:(Lorg/graalvm/polyglot/Source;)Lorg/graalvm/polyglot/Value;
            pop
        10: .line 114
            aload 5 /* instrumentationThread */
            invokevirtual com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.join:()V
        11: .line 115
            iload 1 /* load */
            ifeq 12
            iconst_3
            goto 13
      StackMap locals: com.oracle.truffle.api.instrumentation.test.DeadlockTest int org.graalvm.polyglot.Engine org.graalvm.polyglot.Instrument com.oracle.truffle.api.instrumentation.test.DeadlockTest$TestDeadlockInstrument com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread org.graalvm.polyglot.Context org.graalvm.polyglot.Source org.graalvm.polyglot.Source
      StackMap stack:
        12: iconst_2
      StackMap locals:
      StackMap stack: int
        13: istore 9 /* numSources */
        start local 9 // int numSources
        14: .line 116
            iload 9 /* numSources */
            i2l
            aload 5 /* instrumentationThread */
            getfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.sources:Ljava/util/List;
            invokeinterface java.util.List.size:()I
            i2l
            invokestatic org.junit.Assert.assertEquals:(JJ)V
        15: .line 117
            aload 7 /* source1 */
            invokevirtual org.graalvm.polyglot.Source.getURI:()Ljava/net/URI;
            aload 5 /* instrumentationThread */
            getfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.sources:Ljava/util/List;
            iconst_0
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast com.oracle.truffle.api.source.Source
            invokevirtual com.oracle.truffle.api.source.Source.getURI:()Ljava/net/URI;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
        16: .line 118
            aload 8 /* source2 */
            invokevirtual org.graalvm.polyglot.Source.getURI:()Ljava/net/URI;
            aload 5 /* instrumentationThread */
            getfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.sources:Ljava/util/List;
            iconst_1
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast com.oracle.truffle.api.source.Source
            invokevirtual com.oracle.truffle.api.source.Source.getURI:()Ljava/net/URI;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
        17: .line 119
            iload 1 /* load */
            ifeq 19
        18: .line 120
            ldc "materialized"
            aload 5 /* instrumentationThread */
            getfield com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread.sources:Ljava/util/List;
            iconst_2
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast com.oracle.truffle.api.source.Source
            invokevirtual com.oracle.truffle.api.source.Source.getName:()Ljava/lang/String;
            invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
        19: .line 122
      StackMap locals: int
      StackMap stack:
            return
        end local 9 // int numSources
        end local 8 // org.graalvm.polyglot.Source source2
        end local 7 // org.graalvm.polyglot.Source source1
        end local 6 // org.graalvm.polyglot.Context context
        end local 5 // com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread instrumentationThread
        end local 4 // com.oracle.truffle.api.instrumentation.test.DeadlockTest$TestDeadlockInstrument deadlockInstrument
        end local 3 // org.graalvm.polyglot.Instrument instrument
        end local 2 // org.graalvm.polyglot.Engine engine
        end local 1 // boolean load
        end local 0 // com.oracle.truffle.api.instrumentation.test.DeadlockTest this
      LocalVariableTable:
        Start  End  Slot                   Name  Signature
            0   20     0                   this  Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest;
            0   20     1                   load  Z
            1   20     2                 engine  Lorg/graalvm/polyglot/Engine;
            2   20     3             instrument  Lorg/graalvm/polyglot/Instrument;
            3   20     4     deadlockInstrument  Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest$TestDeadlockInstrument;
            4   20     5  instrumentationThread  Lcom/oracle/truffle/api/instrumentation/test/DeadlockTest$InstrumentationThread;
            5   20     6                context  Lorg/graalvm/polyglot/Context;
            6   20     7                source1  Lorg/graalvm/polyglot/Source;
            9   20     8                source2  Lorg/graalvm/polyglot/Source;
           14   20     9             numSources  I
    Exceptions:
      throws java.lang.InterruptedException
    MethodParameters:
      Name  Flags
      load  
}
SourceFile: "DeadlockTest.java"
NestMembers:
  com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread  com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread$1  com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread$2  com.oracle.truffle.api.instrumentation.test.DeadlockTest$LockingLanguage  com.oracle.truffle.api.instrumentation.test.DeadlockTest$LockingLanguage$1  com.oracle.truffle.api.instrumentation.test.DeadlockTest$LockingLanguage$2  com.oracle.truffle.api.instrumentation.test.DeadlockTest$LockingLanguage$2$1  com.oracle.truffle.api.instrumentation.test.DeadlockTest$LockingLanguage$StatementNode  com.oracle.truffle.api.instrumentation.test.DeadlockTest$LockingLanguage$StatementNode$1  com.oracle.truffle.api.instrumentation.test.DeadlockTest$TestDeadlockInstrument
InnerClasses:
  public final Env = com.oracle.truffle.api.instrumentation.TruffleInstrument$Env of com.oracle.truffle.api.instrumentation.TruffleInstrument
  private InstrumentationThread = com.oracle.truffle.api.instrumentation.test.DeadlockTest$InstrumentationThread of com.oracle.truffle.api.instrumentation.test.DeadlockTest
  public LockingLanguage = com.oracle.truffle.api.instrumentation.test.DeadlockTest$LockingLanguage of com.oracle.truffle.api.instrumentation.test.DeadlockTest
  public TestDeadlockInstrument = com.oracle.truffle.api.instrumentation.test.DeadlockTest$TestDeadlockInstrument of com.oracle.truffle.api.instrumentation.test.DeadlockTest
  public final Builder = org.graalvm.polyglot.Context$Builder of org.graalvm.polyglot.Context