Update to go1.23.4
This commit is contained in:
@@ -31,10 +31,11 @@ x_cgo_getstackbound(uintptr bounds[2])
|
||||
pthread_attr_get_np(pthread_self(), &attr);
|
||||
pthread_attr_getstack(&attr, &addr, &size); // low address
|
||||
#else
|
||||
// We don't know how to get the current stacks, so assume they are the
|
||||
// same as the default stack bounds.
|
||||
pthread_attr_getstacksize(&attr, &size);
|
||||
addr = __builtin_frame_address(0) + 4096 - size;
|
||||
// We don't know how to get the current stacks, leave it as
|
||||
// 0 and the caller will use an estimate based on the current
|
||||
// SP.
|
||||
addr = 0;
|
||||
size = 0;
|
||||
#endif
|
||||
pthread_attr_destroy(&attr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user