Commit 9ddab97
authored
fix(eBPF): Flush symbol cache after replay to avoid unsent data (#11743)
During replay, keep symbols cached in g_symbol_buffer.
After replay_callbacks(jvmti) completes, immediately flush g_cached_bytes under g_df_lock protection.
Once flush is done, set replay_finish = true.
df_send_symbol() now only sends the current symbol when replay_finish == true, and no longer flushes replay cache automatically.
This prevents cached data from being left unsent if no new symbol events occur after replay completes.1 parent 25c9d5a commit 9ddab97
2 files changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | 326 | | |
332 | 327 | | |
333 | 328 | | |
| |||
566 | 561 | | |
567 | 562 | | |
568 | 563 | | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
569 | 572 | | |
| 573 | + | |
570 | 574 | | |
571 | 575 | | |
572 | 576 | | |
| |||
0 commit comments