mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
Revert "Add some temporary code to record stack usage at server process exit."
This reverts commit88cf37d2a8
as well as follow-on commitsea9c4a16d5
andc57562725d
. We've learned about as much as we can from the buildfarm.
This commit is contained in:
@ -96,9 +96,6 @@ int max_stack_depth = 100;
|
||||
/* wait N seconds to allow attach from a debugger */
|
||||
int PostAuthDelay = 0;
|
||||
|
||||
/* Exported for use by proc_exit */
|
||||
long max_measured_stack_depth = 0;
|
||||
long max_measured_register_stack_depth = 0;
|
||||
|
||||
|
||||
/* ----------------
|
||||
@ -3140,11 +3137,6 @@ stack_is_too_deep(void)
|
||||
if (stack_depth < 0)
|
||||
stack_depth = -stack_depth;
|
||||
|
||||
/* Track max measured depth for reporting by proc_exit */
|
||||
if (stack_depth > max_measured_stack_depth &&
|
||||
stack_base_ptr != NULL)
|
||||
max_measured_stack_depth = stack_depth;
|
||||
|
||||
/*
|
||||
* Trouble?
|
||||
*
|
||||
@ -3168,10 +3160,6 @@ stack_is_too_deep(void)
|
||||
#if defined(__ia64__) || defined(__ia64)
|
||||
stack_depth = (long) (ia64_get_bsp() - register_stack_base_ptr);
|
||||
|
||||
if (stack_depth > max_measured_register_stack_depth &&
|
||||
register_stack_base_ptr != NULL)
|
||||
max_measured_register_stack_depth = stack_depth;
|
||||
|
||||
if (stack_depth > max_stack_depth_bytes &&
|
||||
register_stack_base_ptr != NULL)
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user