Skip to content

Commit 59b5a32

Browse files
committed
Initial commit
0 parents  commit 59b5a32

File tree

9 files changed

+363
-0
lines changed

9 files changed

+363
-0
lines changed

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
target/
2+
!.mvn/wrapper/maven-wrapper.jar
3+
!**/src/main/**/target/
4+
!**/src/test/**/target/
5+
6+
### IntelliJ IDEA ###
7+
.idea/modules.xml
8+
.idea/jarRepositories.xml
9+
.idea/compiler.xml
10+
.idea/libraries/
11+
*.iws
12+
*.iml
13+
*.ipr
14+
15+
### Eclipse ###
16+
.apt_generated
17+
.classpath
18+
.factorypath
19+
.project
20+
.settings
21+
.springBeans
22+
.sts4-cache
23+
24+
### NetBeans ###
25+
/nbproject/private/
26+
/nbbuild/
27+
/dist/
28+
/nbdist/
29+
/.nb-gradle/
30+
build/
31+
!**/src/main/**/build/
32+
!**/src/test/**/build/
33+
34+
### VS Code ###
35+
.vscode/
36+
37+
### Mac OS ###
38+
.DS_Store

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/uiDesigner.xml

Lines changed: 124 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bytecode.txt

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
Classfile /mnt/E/Java Multi-Threading/java-multi-threading/target/classes/com/dev/Main.class
2+
Last modified Oct 26, 2024; size 1145 bytes
3+
SHA-256 checksum 985b73ba6f3e0dc0fd1061ff1afa0fee6c94cc476e64c6ac3268dae77a6d30c4
4+
Compiled from "Main.java"
5+
public class com.dev.Main
6+
minor version: 0
7+
major version: 61
8+
flags: (0x0021) ACC_PUBLIC, ACC_SUPER
9+
this_class: #29 // com/dev/Main
10+
super_class: #2 // java/lang/Object
11+
interfaces: 0, fields: 0, methods: 2, attributes: 3
12+
Constant pool:
13+
#1 = Methodref #2.#3 // java/lang/Object."<init>":()V
14+
#2 = Class #4 // java/lang/Object
15+
#3 = NameAndType #5:#6 // "<init>":()V
16+
#4 = Utf8 java/lang/Object
17+
#5 = Utf8 <init>
18+
#6 = Utf8 ()V
19+
#7 = Fieldref #8.#9 // java/lang/System.out:Ljava/io/PrintStream;
20+
#8 = Class #10 // java/lang/System
21+
#9 = NameAndType #11:#12 // out:Ljava/io/PrintStream;
22+
#10 = Utf8 java/lang/System
23+
#11 = Utf8 out
24+
#12 = Utf8 Ljava/io/PrintStream;
25+
#13 = String #14 // Hello and welcome!
26+
#14 = Utf8 Hello and welcome!
27+
#15 = Methodref #16.#17 // java/io/PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
28+
#16 = Class #18 // java/io/PrintStream
29+
#17 = NameAndType #19:#20 // printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
30+
#18 = Utf8 java/io/PrintStream
31+
#19 = Utf8 printf
32+
#20 = Utf8 (Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
33+
#21 = InvokeDynamic #0:#22 // #0:makeConcatWithConstants:(I)Ljava/lang/String;
34+
#22 = NameAndType #23:#24 // makeConcatWithConstants:(I)Ljava/lang/String;
35+
#23 = Utf8 makeConcatWithConstants
36+
#24 = Utf8 (I)Ljava/lang/String;
37+
#25 = Methodref #16.#26 // java/io/PrintStream.println:(Ljava/lang/String;)V
38+
#26 = NameAndType #27:#28 // println:(Ljava/lang/String;)V
39+
#27 = Utf8 println
40+
#28 = Utf8 (Ljava/lang/String;)V
41+
#29 = Class #30 // com/dev/Main
42+
#30 = Utf8 com/dev/Main
43+
#31 = Utf8 Code
44+
#32 = Utf8 LineNumberTable
45+
#33 = Utf8 LocalVariableTable
46+
#34 = Utf8 this
47+
#35 = Utf8 Lcom/dev/Main;
48+
#36 = Utf8 main
49+
#37 = Utf8 ([Ljava/lang/String;)V
50+
#38 = Utf8 i
51+
#39 = Utf8 I
52+
#40 = Utf8 args
53+
#41 = Utf8 [Ljava/lang/String;
54+
#42 = Utf8 StackMapTable
55+
#43 = Utf8 SourceFile
56+
#44 = Utf8 Main.java
57+
#45 = Utf8 BootstrapMethods
58+
#46 = MethodHandle 6:#47 // REF_invokeStatic java/lang/invoke/StringConcatFactory.makeConcatWithConstants:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
59+
#47 = Methodref #48.#49 // java/lang/invoke/StringConcatFactory.makeConcatWithConstants:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
60+
#48 = Class #50 // java/lang/invoke/StringConcatFactory
61+
#49 = NameAndType #23:#51 // makeConcatWithConstants:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
62+
#50 = Utf8 java/lang/invoke/StringConcatFactory
63+
#51 = Utf8 (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
64+
#52 = String #53 // i = \u0001
65+
#53 = Utf8 i = \u0001
66+
#54 = Utf8 InnerClasses
67+
#55 = Class #56 // java/lang/invoke/MethodHandles$Lookup
68+
#56 = Utf8 java/lang/invoke/MethodHandles$Lookup
69+
#57 = Class #58 // java/lang/invoke/MethodHandles
70+
#58 = Utf8 java/lang/invoke/MethodHandles
71+
#59 = Utf8 Lookup
72+
{
73+
public com.dev.Main();
74+
descriptor: ()V
75+
flags: (0x0001) ACC_PUBLIC
76+
Code:
77+
stack=1, locals=1, args_size=1
78+
0: aload_0
79+
1: invokespecial #1 // Method java/lang/Object."<init>":()V
80+
4: return
81+
LineNumberTable:
82+
line 5: 0
83+
LocalVariableTable:
84+
Start Length Slot Name Signature
85+
0 5 0 this Lcom/dev/Main;
86+
87+
public static void main(java.lang.String[]);
88+
descriptor: ([Ljava/lang/String;)V
89+
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
90+
Code:
91+
stack=3, locals=2, args_size=1
92+
0: getstatic #7 // Field java/lang/System.out:Ljava/io/PrintStream;
93+
3: ldc #13 // String Hello and welcome!
94+
5: iconst_0
95+
6: anewarray #2 // class java/lang/Object
96+
9: invokevirtual #15 // Method java/io/PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
97+
12: pop
98+
13: iconst_1
99+
14: istore_1
100+
15: iload_1
101+
16: iconst_5
102+
17: if_icmpgt 38
103+
20: getstatic #7 // Field java/lang/System.out:Ljava/io/PrintStream;
104+
23: iload_1
105+
24: invokedynamic #21, 0 // InvokeDynamic #0:makeConcatWithConstants:(I)Ljava/lang/String;
106+
29: invokevirtual #25 // Method java/io/PrintStream.println:(Ljava/lang/String;)V
107+
32: iinc 1, 1
108+
35: goto 15
109+
38: return
110+
LineNumberTable:
111+
line 9: 0
112+
line 11: 13
113+
line 14: 20
114+
line 11: 32
115+
line 16: 38
116+
LocalVariableTable:
117+
Start Length Slot Name Signature
118+
15 23 1 i I
119+
0 39 0 args [Ljava/lang/String;
120+
StackMapTable: number_of_entries = 2
121+
frame_type = 252 /* append */
122+
offset_delta = 15
123+
locals = [ int ]
124+
frame_type = 250 /* chop */
125+
offset_delta = 22
126+
}
127+
SourceFile: "Main.java"
128+
BootstrapMethods:
129+
0: #46 REF_invokeStatic java/lang/invoke/StringConcatFactory.makeConcatWithConstants:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
130+
Method arguments:
131+
#52 i = \u0001
132+
InnerClasses:
133+
public static final #59= #55 of #57; // Lookup=class java/lang/invoke/MethodHandles$Lookup of class java/lang/invoke/MethodHandles

pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.dev</groupId>
8+
<artifactId>java-multi-threading</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
<packaging>jar</packaging>
11+
12+
<properties>
13+
<maven.compiler.source>17</maven.compiler.source>
14+
<maven.compiler.target>17</maven.compiler.target>
15+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16+
</properties>
17+
18+
<build>
19+
<finalName>multi-threading</finalName>
20+
</build>
21+
22+
</project>

src/main/java/com/dev/Main.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.dev;
2+
3+
4+
public class Main {
5+
public static void main(String[] args) {
6+
7+
}
8+
}

0 commit comments

Comments
 (0)