diff options
| author | Paul Eggert | 2015-08-26 19:24:28 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-08-26 19:24:58 -0700 |
| commit | 60d1b18734fff144f1608da6228d60e4bda7b24c (patch) | |
| tree | 9b917c91b7de84ba517dba738784e1f1600f9234 /src/macros.c | |
| parent | 259a643d7f7c56976ff794cbdba8f5c70c795091 (diff) | |
| download | emacs-60d1b18734fff144f1608da6228d60e4bda7b24c.tar.gz emacs-60d1b18734fff144f1608da6228d60e4bda7b24c.zip | |
Assume GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS
This removes the need for GCPRO1 etc. Suggested by Stefan Monnier in:
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00918.html
* doc/lispref/internals.texi (Writing Emacs Primitives):
* etc/NEWS:
Document the change.
* src/alloc.c (gcprolist, dump_zombies, MAX_ZOMBIES, zombies)
(nzombies, ngcs, avg_zombies, max_live, max_zombies, avg_live)
(Fgc_status, check_gcpros, relocatable_string_data_p, gc-precise):
* src/bytecode.c (mark_byte_stack) [BYTE_MARK_STACK]:
* src/eval.c (gcpro_level) [DEBUG_GCPRO]:
* src/lisp.h (struct handler.gcpro, struct gcpro, GC_MARK_STACK)
(GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
(GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
(BYTE_MARK_STACK, GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6)
(GCPRO7, UNGCPRO, RETURN_UNGCPRO):
Remove. All uses removed. The code now assumes
GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS.
* src/bytecode.c (relocate_byte_stack):
Rename from unmark_byte_stack, since it now only relocates.
All callers changed.
* src/frame.c (make_frame): Add an IF_LINT to pacify GCC 5.2
with GCPROs removed.
* src/systime.h: Use EMACS_LISP_H as the canary instead of GCPRO1.
* test/automated/finalizer-tests.el (finalizer-basic)
(finalizer-circular-reference, finalizer-cross-reference)
(finalizer-error):
* test/automated/generator-tests.el (cps-test-iter-close-finalizer):
Remove tests, as they depend on gc-precise.
Diffstat (limited to 'src/macros.c')
| -rw-r--r-- | src/macros.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/macros.c b/src/macros.c index 79ed5b5d1bc..1bf2cd73443 100644 --- a/src/macros.c +++ b/src/macros.c | |||
| @@ -294,7 +294,6 @@ each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */) | |||
| 294 | Lisp_Object tem; | 294 | Lisp_Object tem; |
| 295 | ptrdiff_t pdlcount = SPECPDL_INDEX (); | 295 | ptrdiff_t pdlcount = SPECPDL_INDEX (); |
| 296 | EMACS_INT repeat = 1; | 296 | EMACS_INT repeat = 1; |
| 297 | struct gcpro gcpro1, gcpro2; | ||
| 298 | EMACS_INT success_count = 0; | 297 | EMACS_INT success_count = 0; |
| 299 | 298 | ||
| 300 | executing_kbd_macro_iterations = 0; | 299 | executing_kbd_macro_iterations = 0; |
| @@ -314,7 +313,6 @@ each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */) | |||
| 314 | Vreal_this_command)); | 313 | Vreal_this_command)); |
| 315 | record_unwind_protect (pop_kbd_macro, tem); | 314 | record_unwind_protect (pop_kbd_macro, tem); |
| 316 | 315 | ||
| 317 | GCPRO2 (final, loopfunc); | ||
| 318 | do | 316 | do |
| 319 | { | 317 | { |
| 320 | Vexecuting_kbd_macro = final; | 318 | Vexecuting_kbd_macro = final; |
| @@ -344,7 +342,6 @@ each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */) | |||
| 344 | 342 | ||
| 345 | Vreal_this_command = Vexecuting_kbd_macro; | 343 | Vreal_this_command = Vexecuting_kbd_macro; |
| 346 | 344 | ||
| 347 | UNGCPRO; | ||
| 348 | return unbind_to (pdlcount, Qnil); | 345 | return unbind_to (pdlcount, Qnil); |
| 349 | } | 346 | } |
| 350 | 347 | ||