Commit ace09a9
committed
Add missing exclusive access for thread iteration
Acquire exclusive when allocating the local JFR buffers so if any new
threads are created in this period they must wait for the iteration to
complete. After the iteration is complete the thread creation hook is
added so new threads will trigger that.
Also instead of requesting threadCPU sample on the requestor thread,
trigger the async check so threadCPU is captured on all threads.
Signed-off-by: Tobi Ajila <atobia@ca.ibm.com>1 parent 16776fb commit ace09a9
4 files changed
Lines changed: 48 additions & 1 deletion
File tree
- runtime
- jcl/common
- vm
- test/functional/cmdLineTests/jfr
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
265 | 266 | | |
| 267 | + | |
266 | 268 | | |
267 | 269 | | |
268 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| 380 | + | |
380 | 381 | | |
381 | 382 | | |
382 | 383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
713 | 716 | | |
714 | 717 | | |
715 | 718 | | |
| |||
950 | 953 | | |
951 | 954 | | |
952 | 955 | | |
| 956 | + | |
953 | 957 | | |
| 958 | + | |
954 | 959 | | |
955 | 960 | | |
| 961 | + | |
956 | 962 | | |
957 | 963 | | |
958 | 964 | | |
| |||
1031 | 1037 | | |
1032 | 1038 | | |
1033 | 1039 | | |
| 1040 | + | |
1034 | 1041 | | |
1035 | 1042 | | |
1036 | 1043 | | |
| |||
1050 | 1057 | | |
1051 | 1058 | | |
1052 | 1059 | | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
1053 | 1066 | | |
1054 | 1067 | | |
1055 | 1068 | | |
| |||
1070 | 1083 | | |
1071 | 1084 | | |
1072 | 1085 | | |
| 1086 | + | |
1073 | 1087 | | |
1074 | 1088 | | |
| 1089 | + | |
1075 | 1090 | | |
1076 | 1091 | | |
1077 | 1092 | | |
| |||
1110 | 1125 | | |
1111 | 1126 | | |
1112 | 1127 | | |
| 1128 | + | |
1113 | 1129 | | |
| 1130 | + | |
1114 | 1131 | | |
1115 | 1132 | | |
1116 | 1133 | | |
| |||
2216 | 2233 | | |
2217 | 2234 | | |
2218 | 2235 | | |
2219 | | - | |
| 2236 | + | |
| 2237 | + | |
2220 | 2238 | | |
2221 | 2239 | | |
2222 | 2240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
110 | 136 | | |
0 commit comments