+2015-03-03 Daniel Colascione <dancol@dancol.org>
+
+ * alloc.c (syms_of_alloc): Rename `gc-precise-p' to `gc-precise'.
+
2015-03-03 Paul Eggert <eggert@cs.ucla.edu>
* alloc.c (run_finalizers): Omit unused local.
{
/* Even though Qt's contents are not set up, its address is known. */
Vpurify_flag = Qt;
- gc_precise_p = (GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE);
+ gc_precise = (GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE);
purebeg = PUREBEG;
pure_size = PURESIZE;
DEFVAR_INT ("gcs-done", gcs_done,
doc: /* Accumulated number of garbage collections done. */);
- DEFVAR_BOOL ("gc-precise-p", gc_precise_p,
+ DEFVAR_BOOL ("gc-precise", gc_precise,
doc: /* Non-nil means GC stack marking is precise.
Useful mainly for automated GC tests. Build time constant.*/);
+ XSYMBOL (intern_c_string ("gc-precise"))->constant = 1;
defsubr (&Scons);
defsubr (&Slist);
+2015-03-03 Daniel Colascione <dancol@dancol.org>
+
+ * automated/finalizer-tests.el (finalizer-basic)
+ (finalizer-circular-reference, finalizer-cross-reference)
+ (finalizer-error): Rename `gc-precise-p' to `gc-precise'.
+
+ * automated/generator-tests.el (cps-test-iter-close-finalizer):
+ Rename `gc-precise-p' to `gc-precise'.
+
2015-03-03 Glenn Morris <rgm@gnu.org>
* automated/generator-tests.el (cps-while-incf):
(ert-deftest finalizer-basic ()
"Test that finalizers run at all."
- (skip-unless gc-precise-p)
+ (skip-unless gc-precise)
(let* ((finalized nil)
(finalizer (make-finalizer (lambda () (setf finalized t)))))
(garbage-collect)
(ert-deftest finalizer-circular-reference ()
"Test references from a callback to a finalizer."
- (skip-unless gc-precise-p)
+ (skip-unless gc-precise)
(let ((finalized nil))
(let* ((value nil)
(finalizer (make-finalizer (lambda () (setf finalized value)))))
(ert-deftest finalizer-cross-reference ()
"Test that between-finalizer references do not prevent collection."
- (skip-unless gc-precise-p)
+ (skip-unless gc-precise)
(let ((d nil) (fc 0))
(let* ((f1-data (cons nil nil))
(f2-data (cons nil nil))
(ert-deftest finalizer-error ()
"Test that finalizer errors are suppressed"
- (skip-unless gc-precise-p)
+ (skip-unless gc-precise)
(make-finalizer (lambda () (error "ABCDEF")))
(garbage-collect)
(with-current-buffer "*Messages*"
(should (not cps-test-closed-flag)))))
(ert-deftest cps-test-iter-close-finalizer ()
- (skip-unless gc-precise-p)
+ (skip-unless gc-precise)
(garbage-collect)
(let ((cps-test-closed-flag nil))
(let ((iter (funcall