Skip to content

Conversation

@austinderek
Copy link

Cleaned up goroutine leak profile extraction, by removing the acquisition of goroutineProfile semaphore, and inlining the call to saveg when recording stacks; former use of doRecordGoroutineProfile had side-effects over goroutineProfile fields.
Added regression tests for goroutine leak profiling frontend.
Added stress tests for concurrent goroutine and goroutine leak profile requests.


🔄 This is a mirror of upstream PR golang#76045

@austinderek austinderek force-pushed the master branch 30 times, most recently from 5bf50a0 to 643f80a Compare October 25, 2025 06:01
Prior to Go 1.24, os.OpenFile used to support O_TRUNC on named pipes and
terminal devices, even when the truncation was really ignored. This
behavior was consistent with Unix semantics.

CL 618836 changed the implementation of os.OpenFile on Windows and
unintentionally started returning an error when O_TRUNC was used on such
files.

Fixes golang#76071

Change-Id: Id10d3d8120ae9aa0548ef05423a172ff4e502ff9
Reviewed-on: https://go-review.googlesource.com/c/go/+/716420
Reviewed-by: Michael Knyszek <[email protected]>
Reviewed-by: Alex Brainman <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Damien Neil <[email protected]>
Reviewed-by: Michael Pratt <[email protected]>
@austinderek austinderek force-pushed the master branch 8 times, most recently from 9f3a108 to c37e118 Compare November 5, 2025 11:02
@austinderek austinderek force-pushed the master branch 2 times, most recently from 9f3a108 to c37e118 Compare November 5, 2025 12:02
@austinderek austinderek force-pushed the dev.fix-goroutineleak-profile branch from ddfb0aa to 233dd50 Compare November 5, 2025 12:02
@austinderek austinderek force-pushed the master branch 10 times, most recently from 9f3a108 to c37e118 Compare November 5, 2025 17:03
@austinderek austinderek closed this Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.