diff options
| author | Tom Tromey | 2013-07-06 23:18:58 -0600 |
|---|---|---|
| committer | Tom Tromey | 2013-07-06 23:18:58 -0600 |
| commit | 6dacdad5fcb278e5a16b38bb81786aac9ca27be4 (patch) | |
| tree | f5f331ea361ba0f99e0f9b638d183ad492a7da31 /src/thread.c | |
| parent | 0a6f2ff0c8ceb29703e76cddd46ea3f176dd873a (diff) | |
| parent | 219afb88d9d484393418820d1c08dc93299110ec (diff) | |
| download | emacs-6dacdad5fcb278e5a16b38bb81786aac9ca27be4.tar.gz emacs-6dacdad5fcb278e5a16b38bb81786aac9ca27be4.zip | |
merge from trunk
this merges frmo trunk and fixes various build issues.
this needed a few ugly tweaks.
this hangs in "make check" now
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/thread.c b/src/thread.c index 21f74b7696f..a8e79e8377d 100644 --- a/src/thread.c +++ b/src/thread.c | |||
| @@ -707,8 +707,10 @@ If NAME is given, it names the new thread. */) | |||
| 707 | new_thread->event_object = Qnil; | 707 | new_thread->event_object = Qnil; |
| 708 | 708 | ||
| 709 | new_thread->m_specpdl_size = 50; | 709 | new_thread->m_specpdl_size = 50; |
| 710 | new_thread->m_specpdl = xmalloc (new_thread->m_specpdl_size | 710 | new_thread->m_specpdl = xmalloc ((1 + new_thread->m_specpdl_size) |
| 711 | * sizeof (struct specbinding)); | 711 | * sizeof (union specbinding)); |
| 712 | /* Skip the dummy entry. */ | ||
| 713 | ++new_thread->m_specpdl; | ||
| 712 | new_thread->m_specpdl_ptr = new_thread->m_specpdl; | 714 | new_thread->m_specpdl_ptr = new_thread->m_specpdl; |
| 713 | 715 | ||
| 714 | sys_cond_init (&new_thread->thread_condvar); | 716 | sys_cond_init (&new_thread->thread_condvar); |