Skip to content

Commit

Permalink
Mark EPoll.wait as WAITING
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
Olli Kuonanoja committed Jun 25, 2019
1 parent 1b1c6de commit 85defbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stackcollapse-jstack.pl
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ sub remember_stack {

# fix state for epollWait
$state = "WAITING" if $func =~ /epollWait/;
$state = "WAITING" if $func =~ /EPoll\.wait/;


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

0 comments on commit 85defbf

Please sign in to comment.