Commit a941826
committed
Fix GetThreadCpuTimeWithKind
* Avoid crash if thread is not found
* Ensure that thread is alive to make sure that we return -1 as soon as
a thread have been joined.1 parent 1bd583d commit a941826
File tree
1 file changed
+2
-2
lines changed- espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/vm
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
925 | 925 | | |
926 | 926 | | |
927 | 927 | | |
928 | | - | |
| 928 | + | |
929 | 929 | | |
930 | 930 | | |
931 | 931 | | |
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
953 | | - | |
| 953 | + | |
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
| |||
0 commit comments