@@ -46,7 +46,7 @@ impl Thread {
46
46
}
47
47
48
48
async fn init ( jvm : & Jvm , _: & mut RuntimeContext , this : ClassInstanceRef < Self > ) -> Result < ( ) > {
49
- tracing:: debug!( "Thread::<init>({:?})" , & this) ;
49
+ tracing:: debug!( "java.lang. Thread::<init>({:?})" , & this) ;
50
50
51
51
let _: ( ) = jvm. invoke_special ( & this, "java/lang/Object" , "<init>" , "()V" , ( ) ) . await ?;
52
52
@@ -59,7 +59,7 @@ impl Thread {
59
59
mut this : ClassInstanceRef < Self > ,
60
60
target : ClassInstanceRef < Runnable > ,
61
61
) -> Result < ( ) > {
62
- tracing:: debug!( "Thread::<init>({:?}, {:?})" , & this, & target) ;
62
+ tracing:: debug!( "java.lang. Thread::<init>({:?}, {:?})" , & this, & target) ;
63
63
64
64
let _: ( ) = jvm. invoke_special ( & this, "java/lang/Object" , "<init>" , "()V" , ( ) ) . await ?;
65
65
@@ -69,7 +69,7 @@ impl Thread {
69
69
}
70
70
71
71
async fn init_internal ( jvm : & Jvm , context : & mut RuntimeContext , mut this : ClassInstanceRef < Self > , internal : bool ) -> Result < ( ) > {
72
- tracing:: debug!( "Thread::<init>({:?}, {:?})" , & this, internal) ;
72
+ tracing:: debug!( "java.lang. Thread::<init>({:?}, {:?})" , & this, internal) ;
73
73
74
74
let id = context. current_task_id ( ) ;
75
75
jvm. put_field ( & mut this, "id" , "J" , id as i64 ) . await ?;
@@ -78,7 +78,7 @@ impl Thread {
78
78
}
79
79
80
80
async fn start ( jvm : & Jvm , context : & mut RuntimeContext , mut this : ClassInstanceRef < Self > ) -> Result < ( ) > {
81
- tracing:: debug!( "Thread::start({:?})" , & this) ;
81
+ tracing:: debug!( "java.lang. Thread::start({:?})" , & this) ;
82
82
83
83
struct ThreadStartProxy {
84
84
jvm : Jvm ,
@@ -124,7 +124,7 @@ impl Thread {
124
124
}
125
125
126
126
async fn run ( jvm : & Jvm , _: & mut RuntimeContext , this : ClassInstanceRef < Self > ) -> Result < ( ) > {
127
- tracing:: debug!( "Thread::run({:?})" , & this) ;
127
+ tracing:: debug!( "java.lang. Thread::run({:?})" , & this) ;
128
128
129
129
let target: ClassInstanceRef < Runnable > = jvm. get_field ( & this, "target" , "Ljava/lang/Runnable;" ) . await ?;
130
130
if !target. is_null ( ) {
@@ -135,7 +135,7 @@ impl Thread {
135
135
}
136
136
137
137
async fn join ( jvm : & Jvm , _context : & mut RuntimeContext , mut this : ClassInstanceRef < Self > ) -> Result < ( ) > {
138
- tracing:: debug!( "Thread::join({:?})" , & this) ;
138
+ tracing:: debug!( "java.lang. Thread::join({:?})" , & this) ;
139
139
140
140
// TODO we don't have get same field twice
141
141
let raw_join_event: ClassInstanceRef < Array < i8 > > = jvm. get_field ( & this, "joinEvent" , "[B" ) . await ?;
@@ -152,21 +152,21 @@ impl Thread {
152
152
}
153
153
154
154
async fn is_alive ( _jvm : & Jvm , _: & mut RuntimeContext , this : ClassInstanceRef < Self > ) -> Result < bool > {
155
- tracing:: warn!( "stub Thread::isAlive({:?})" , & this) ;
155
+ tracing:: warn!( "stub java.lang. Thread::isAlive({:?})" , & this) ;
156
156
157
157
Ok ( true )
158
158
}
159
159
160
160
async fn sleep ( _: & Jvm , context : & mut RuntimeContext , duration : i64 ) -> Result < ( ) > {
161
- tracing:: debug!( "Thread::sleep({:?})" , duration) ;
161
+ tracing:: debug!( "java.lang. Thread::sleep({:?})" , duration) ;
162
162
163
163
context. sleep ( Duration :: from_millis ( duration as _ ) ) . await ;
164
164
165
165
Ok ( ( ) )
166
166
}
167
167
168
168
async fn r#yield ( _: & Jvm , context : & mut RuntimeContext ) -> Result < ( ) > {
169
- tracing:: debug!( "Thread::yield()" ) ;
169
+ tracing:: debug!( "java.lang. Thread::yield()" ) ;
170
170
context. r#yield ( ) . await ;
171
171
172
172
Ok ( ( ) )
@@ -179,7 +179,7 @@ impl Thread {
179
179
}
180
180
181
181
async fn current_thread ( jvm : & Jvm , _: & mut RuntimeContext ) -> Result < ClassInstanceRef < Self > > {
182
- tracing:: warn!( "stub Thread::currentThread()" ) ;
182
+ tracing:: warn!( "stub java.lang. Thread::currentThread()" ) ;
183
183
184
184
let thread = jvm. new_class ( "java/lang/Thread" , "(Z)V" , ( true , ) ) . await ?;
185
185
0 commit comments