Skip to content

Commit 85defbf

Browse files
author
Olli Kuonanoja
committed
Mark EPoll.wait as WAITING
Depending on `Selector` implementation, the IO blocking method can be `epollWait` or `EPoll.wait`. Mark threads to be in waiting state if they are in `EPoll.wait`.
1 parent 1b1c6de commit 85defbf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: stackcollapse-jstack.pl

+2
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ sub remember_stack {
154154

155155
# fix state for epollWait
156156
$state = "WAITING" if $func =~ /epollWait/;
157+
$state = "WAITING" if $func =~ /EPoll\.wait/;
158+
157159

158160
# fix state for various networking functions
159161
$state = "NETWORK" if $func =~ /socketAccept$/;

0 commit comments

Comments
 (0)