On Wed, 9 Jun 2021 07:29:11 GMT, Severin Gehwolf <[email protected]> wrote:
>> I use top -Hp $PID command and the thread show 100% cpu usage >>  >>  > > @UncleNine We should handle the case in the `get_totalticks()` function - > which seems to be the only user of `next_line()` - when `next_line()` returns > EOF as David said. One way would be to return the 'c' character read in > `next_line` and if it's EOF, return -2 in `get_totalticks()`. all right, i have updated the code ------------- PR: https://git.openjdk.java.net/jdk/pull/4378
