-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use address of a local variable to get approximate stack pointer
Use __builtin_frame_address(0), if available, in GC_call_with_stack_base(), GC_call_with_gc_active() and GC_do_blocking_inner(). * misc.c (GC_call_with_stack_base): Use APPROX_SP() to set base.mem_base. * misc.c [!THREADS] (GC_call_with_gc_active): Use APPROX_SP(&stacksect.saved_stack_ptr) instead of &stacksect; update comment. * pthread_support.c (GC_call_with_gc_active): Likewise. * misc.c [!THREADS] (GC_do_blocking_inner): Remove d local variable. * pthread_support.c (GC_do_blocking_inner): Likewise. * misc.c [!THREADS && !SPARC] (GC_do_blocking_inner): Use GC_approx_sp() instead of &d to set GC_blocked_sp; remove useless comment; do not compare GC_blocked_sp to &d in assertion. * pthread_support.c [GC_PTHREADS && !SN_TARGET_ORBIS && !SN_TARGET_PSP2 && DEBUG_THREADS] (GC_start_rtn_prepare_thread): Use GC_approx_sp() instead of &arg.
- Loading branch information
Showing
2 changed files
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters