class com.mchange.v2.c3p0.test.C3P0BenchmarkApp$FiveThreadPSQueryTestTest$1QueryThread extends java.lang.Thread
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mchange.v2.c3p0.test.C3P0BenchmarkApp$FiveThreadPSQueryTestTest$1QueryThread
super_class: java.lang.Thread
{
final com.mchange.v2.c3p0.test.C3P0BenchmarkApp$FiveThreadPSQueryTestTest this$1;
descriptor: Lcom/mchange/v2/c3p0/test/C3P0BenchmarkApp$FiveThreadPSQueryTestTest;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private final int val$n;
descriptor: I
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final javax.sql.DataSource val$ds;
descriptor: Ljavax/sql/DataSource;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(com.mchange.v2.c3p0.test.C3P0BenchmarkApp$FiveThreadPSQueryTestTest, int, int, javax.sql.DataSource);
descriptor: (Lcom/mchange/v2/c3p0/test/C3P0BenchmarkApp$FiveThreadPSQueryTestTest;IILjavax/sql/DataSource;)V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=5
start local 0 start local 2 0: aload 0
aload 1
putfield com.mchange.v2.c3p0.test.C3P0BenchmarkApp$FiveThreadPSQueryTestTest$1QueryThread.this$1:Lcom/mchange/v2/c3p0/test/C3P0BenchmarkApp$FiveThreadPSQueryTestTest;
aload 0
iload 3
putfield com.mchange.v2.c3p0.test.C3P0BenchmarkApp$FiveThreadPSQueryTestTest$1QueryThread.val$n:I
aload 0
aload 4
putfield com.mchange.v2.c3p0.test.C3P0BenchmarkApp$FiveThreadPSQueryTestTest$1QueryThread.val$ds:Ljavax/sql/DataSource;
aload 0
new java.lang.StringBuilder
dup
ldc "QueryThread-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.Thread.<init>:(Ljava/lang/String;)V
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mchange/v2/c3p0/test/C3P0BenchmarkApp$FiveThreadPSQueryTestTest$1QueryThread;
0 1 2 num I
MethodParameters:
Name Flags
this$0 final
num
val$n final
val$ds final
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: aconst_null
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 38
5: StackMap locals: com.mchange.v2.c3p0.test.C3P0BenchmarkApp$FiveThreadPSQueryTestTest$1QueryThread java.sql.Connection java.sql.PreparedStatement java.sql.ResultSet int
StackMap stack:
aload 0
getfield com.mchange.v2.c3p0.test.C3P0BenchmarkApp$FiveThreadPSQueryTestTest$1QueryThread.val$ds:Ljavax/sql/DataSource;
invokeinterface javax.sql.DataSource.getConnection:()Ljava/sql/Connection;
astore 1
6: aload 1
iconst_0
invokeinterface java.sql.Connection.setAutoCommit:(Z)V
7: aload 1
ldc "SELECT * FROM emptyyukyuk where a = ?"
invokeinterface java.sql.Connection.prepareStatement:(Ljava/lang/String;)Ljava/sql/PreparedStatement;
astore 2
8: aload 2
iconst_1
ldc "boo"
invokeinterface java.sql.PreparedStatement.setString:(ILjava/lang/String;)V
9: aload 2
invokeinterface java.sql.PreparedStatement.executeQuery:()Ljava/sql/ResultSet;
astore 3
10: goto 12
11: StackMap locals:
StackMap stack:
getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "Huh?? Empty table has values?"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
12: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.sql.ResultSet.next:()Z
ifne 11
13: aload 1
invokeinterface java.sql.Connection.commit:()V
14: goto 33
15: StackMap locals:
StackMap stack: java.lang.Exception
astore 5
start local 5 16: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "FiveThreadPSQueryTestTest exception -- "
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
17: aload 5
invokevirtual java.lang.Exception.printStackTrace:()V
18: aload 1
ifnull 23
aload 1
invokeinterface java.sql.Connection.rollback:()V
19: goto 23
20: StackMap locals: com.mchange.v2.c3p0.test.C3P0BenchmarkApp$FiveThreadPSQueryTestTest$1QueryThread java.sql.Connection java.sql.PreparedStatement java.sql.ResultSet int java.lang.Exception
StackMap stack: java.sql.SQLException
astore 6
start local 6 21: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "Rollback on exception failed! -- "
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
22: aload 6
invokevirtual java.sql.SQLException.printStackTrace:()V
end local 6 end local 5 23: StackMap locals:
StackMap stack:
aload 3
invokestatic com.mchange.v1.db.sql.ResultSetUtils.attemptClose:(Ljava/sql/ResultSet;)Z
pop
24: aload 2
invokestatic com.mchange.v1.db.sql.StatementUtils.attemptClose:(Ljava/sql/Statement;)Z
pop
25: aload 1
invokestatic com.mchange.v1.db.sql.ConnectionUtils.attemptClose:(Ljava/sql/Connection;)Z
pop
26: aconst_null
astore 1
goto 37
27: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
28: aload 3
invokestatic com.mchange.v1.db.sql.ResultSetUtils.attemptClose:(Ljava/sql/ResultSet;)Z
pop
29: aload 2
invokestatic com.mchange.v1.db.sql.StatementUtils.attemptClose:(Ljava/sql/Statement;)Z
pop
30: aload 1
invokestatic com.mchange.v1.db.sql.ConnectionUtils.attemptClose:(Ljava/sql/Connection;)Z
pop
31: aconst_null
astore 1
32: aload 7
athrow
33: StackMap locals:
StackMap stack:
aload 3
invokestatic com.mchange.v1.db.sql.ResultSetUtils.attemptClose:(Ljava/sql/ResultSet;)Z
pop
34: aload 2
invokestatic com.mchange.v1.db.sql.StatementUtils.attemptClose:(Ljava/sql/Statement;)Z
pop
35: aload 1
invokestatic com.mchange.v1.db.sql.ConnectionUtils.attemptClose:(Ljava/sql/Connection;)Z
pop
36: aconst_null
astore 1
37: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
38: iload 4
aload 0
getfield com.mchange.v2.c3p0.test.C3P0BenchmarkApp$FiveThreadPSQueryTestTest$1QueryThread.val$n:I
iconst_5
idiv
if_icmplt 5
end local 4 39: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 40 0 this Lcom/mchange/v2/c3p0/test/C3P0BenchmarkApp$FiveThreadPSQueryTestTest$1QueryThread;
1 40 1 con Ljava/sql/Connection;
2 40 2 pstmt Ljava/sql/PreparedStatement;
3 40 3 rs Ljava/sql/ResultSet;
4 39 4 i I
16 23 5 e Ljava/lang/Exception;
21 23 6 e2 Ljava/sql/SQLException;
Exception table:
from to target type
5 14 15 Class java.lang.Exception
18 19 20 Class java.sql.SQLException
5 23 27 any
}
SourceFile: "C3P0BenchmarkApp.java"
EnclosingMethod: com.mchange.v2.c3p0.test.C3P0BenchmarkApp$FiveThreadPSQueryTestTest.test:(Ljavax/sql/DataSource;I)J
NestHost: com.mchange.v2.c3p0.test.C3P0BenchmarkApp
InnerClasses:
FiveThreadPSQueryTestTest = com.mchange.v2.c3p0.test.C3P0BenchmarkApp$FiveThreadPSQueryTestTest of com.mchange.v2.c3p0.test.C3P0BenchmarkApp
QueryThread = com.mchange.v2.c3p0.test.C3P0BenchmarkApp$FiveThreadPSQueryTestTest$1QueryThread