diff options
| author | Daniel Colascione | 2019-01-15 01:55:06 -0500 |
|---|---|---|
| committer | Daniel Colascione | 2019-01-15 01:55:06 -0500 |
| commit | 66c350ad04800031ea39ed3036cb2565994fe9da (patch) | |
| tree | 441437362ec4978e471980f58cdc9833f7be63f0 | |
| parent | a1d790550e5052916080c6de00268772bdb51d02 (diff) | |
| download | emacs-pdumper.tar.gz emacs-pdumper.zip | |
Check for single-threadednesspdumper
| -rw-r--r-- | src/pdumper.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/pdumper.c b/src/pdumper.c index 956d90cc853..cf2aaf474bb 100644 --- a/src/pdumper.c +++ b/src/pdumper.c | |||
| @@ -451,10 +451,7 @@ struct dump_flags | |||
| 451 | /* Pack objects tighter than GC memory alignment would normally | 451 | /* Pack objects tighter than GC memory alignment would normally |
| 452 | require. Useful for objects copied into the Emacs image instead | 452 | require. Useful for objects copied into the Emacs image instead |
| 453 | of used directly from the loaded dump. | 453 | of used directly from the loaded dump. |
| 454 | 454 | */ | |
| 455 | XXX: actually use | ||
| 456 | |||
| 457 | */ | ||
| 458 | bool_bf pack_objects : 1; | 455 | bool_bf pack_objects : 1; |
| 459 | /* Sometimes we dump objects that we've already scanned for outbound | 456 | /* Sometimes we dump objects that we've already scanned for outbound |
| 460 | references to other objects. These objects should not cause new | 457 | references to other objects. These objects should not cause new |
| @@ -4033,10 +4030,12 @@ types. */) | |||
| 4033 | "dumper. Dumping with the portable dumper may produce " | 4030 | "dumper. Dumping with the portable dumper may produce " |
| 4034 | "unexpected results."); | 4031 | "unexpected results."); |
| 4035 | 4032 | ||
| 4036 | // XXX: check that we have no other threads running | ||
| 4037 | if (!main_thread_p (current_thread)) | 4033 | if (!main_thread_p (current_thread)) |
| 4038 | error ("Function can be called only on main thread"); | 4034 | error ("Function can be called only on main thread"); |
| 4039 | 4035 | ||
| 4036 | if (!NILP (XCDR (Fall_threads ()))) | ||
| 4037 | error ("No other threads can be running"); | ||
| 4038 | |||
| 4040 | /* Clear out any detritus in memory. */ | 4039 | /* Clear out any detritus in memory. */ |
| 4041 | do { | 4040 | do { |
| 4042 | number_finalizers_run = 0; | 4041 | number_finalizers_run = 0; |