You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(java): improve socket lifecycle handling for connect/send/close (#11760)
* fix(eBPF): Use MSG_NOSIGNAL in send() to avoid SIGPIPE on Linux
* fix(java): serialize socket fd close and send paths
Split close_files() into a locked wrapper and a non-locking close_files_locked() helper to ensure fd close operations share the same mutex with send paths. Update send_msg() to use close_files_locked() on send failure to avoid recursive locking when already holding g_df_lock. Move perf_map_socket_fd validity checks in df_send_symbol() inside the critical section to eliminate races between fd close and send operations during re-attach or error handling. This change only tightens fd lifecycle synchronization and does not alter JVMTI event lifecycle or replay semantics.
* Add `close()` when `connect()` fails.
* Adjust comments
0 commit comments