all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: jan.h.d@swipnet.se
Cc: keramida@ceid.upatras.gr, cyd@stupidchicken.com, emacs-devel@gnu.org
Subject: Re: Pretest?
Date: Thu, 15 Mar 2007 21:08:10 +0900 (JST)	[thread overview]
Message-ID: <20070315.210810.236560633.mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <45F92841.3090600@swipnet.se>

>>>>> On Thu, 15 Mar 2007 12:04:33 +0100, Jan Djärv <jan.h.d@swipnet.se> said:

>> I suspect src/gmalloc.c, which does not provide thread-safe malloc
>> (correct me if I'm wrong), is used while HAVE_GTK_AND_PTHREAD is
>> defined.

> If src/gmalloc.c is used, then the hooks in alloc.c are used, so
> they should be thread safe.

No, alloc_mutex only protects the variables __malloc_hook etc., but
not for the heap itself.  Consider the following scenario:

  1) The main thread calls malloc.
  2) It then calls emacs_blocked_malloc via __malloc_hook.
  3) __malloc_hook is set to old_malloc_hook in emacs_blocked_malloc.
  4) Now the main thread is in execution of the original malloc.
  5) Another thread also calls malloc.
  6) The thread also executes the original malloc because
     __malloc_hook == old_malloc_hook.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

  reply	other threads:[~2007-03-15 12:08 UTC|newest]

Thread overview: 91+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-23  9:30 Pretest? Juanma Barranquero
2007-02-23 18:06 ` Pretest? Eli Zaretskii
2007-02-23 18:48 ` Pretest? Chong Yidong
2007-02-23 19:36   ` Pretest? Eli Zaretskii
2007-02-24 15:40     ` Pretest? Chong Yidong
2007-02-24 19:07       ` Pretest? Eli Zaretskii
2007-02-25  4:05         ` Pretest? Richard Stallman
2007-02-25 19:33           ` Pretest? Chong Yidong
2007-03-01 23:38           ` Pretest? Chong Yidong
2007-03-02  1:12             ` Pretest? Lennart Borgman (gmail)
2007-03-02  2:01             ` Pretest? Juanma Barranquero
2007-03-02  8:20               ` Pretest? David Kastrup
2007-03-02  9:23                 ` Pretest? Juanma Barranquero
2007-03-03 11:40             ` Pretest? Eli Zaretskii
2007-03-04  0:28             ` Pretest? Giorgos Keramidas
2007-03-04 20:25               ` Pretest? Chong Yidong
2007-03-04 20:32                 ` Pretest? Giorgos Keramidas
2007-03-04 20:38                 ` Pretest? David Kastrup
2007-03-04 20:47                   ` Pretest? Giorgos Keramidas
2007-03-05  7:15                     ` Pretest? Jan Djärv
2007-03-15 10:39                       ` Pretest? YAMAMOTO Mitsuharu
2007-03-15 11:04                         ` Pretest? Jan Djärv
2007-03-15 12:08                           ` YAMAMOTO Mitsuharu [this message]
2007-03-16  7:52                             ` Pretest? Jan Djärv
2007-03-19  8:00                               ` Pretest? Jan Djärv
2007-03-19  9:31                                 ` Pretest? YAMAMOTO Mitsuharu
2007-03-19 21:16                                   ` Pretest? Giorgos Keramidas
2007-03-20  7:33                                   ` Pretest? Jan Djärv
2007-03-27  8:07                                   ` Pretest? Jan Djärv
2007-03-28  8:24                                     ` Pretest? YAMAMOTO Mitsuharu
2007-03-05  7:13                 ` Pretest? Jan Djärv
2007-03-06  9:38             ` Pretest? Piet van Oostrum
2007-03-07  1:03               ` Pretest? Richard Stallman
2007-03-14  7:21                 ` Pretest? Piet van Oostrum
2007-03-15  0:39                   ` Pretest? YAMAMOTO Mitsuharu
2007-03-15  5:31                     ` Pretest? Richard Stallman
2007-03-15  9:33                       ` Pretest? YAMAMOTO Mitsuharu
2007-03-16  5:20                         ` Pretest? Richard Stallman
2007-03-19  9:53                           ` Pretest? YAMAMOTO Mitsuharu
2007-03-19 10:05                             ` Pretest? Kim F. Storm
2007-03-19 21:57                             ` Pretest? Richard Stallman
2007-03-20  9:18                               ` Pretest? YAMAMOTO Mitsuharu
2007-03-15  1:38                   ` Pretest? Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2007-02-23 18:15 cygwin succesfull straight build Eli Zaretskii
2007-03-07  1:26 ` Pretest? Angelo Graziosi
2007-03-08 19:40   ` Pretest? Chong Yidong
2007-03-09 13:59     ` Pretest? Giorgos Keramidas
2007-03-09 14:44       ` Pretest? Chong Yidong
2007-03-09 17:07         ` Pretest? Christian Faulhammer
2007-03-09 17:35           ` Pretest? Juanma Barranquero
2007-03-09 18:33             ` Pretest? Chong Yidong
2007-03-09 17:49         ` Pretest? Eli Zaretskii
2007-03-09 18:07           ` Pretest? Giorgos Keramidas
2007-03-09 21:26         ` Pretest? Richard Stallman
2007-03-12 10:39         ` Pretest? Juanma Barranquero
2007-03-12 10:42           ` Pretest? David Kastrup
2007-03-12 11:46             ` Pretest? Juanma Barranquero
2007-03-12 14:53           ` Pretest? Stefan Monnier
2007-03-12 15:46             ` Pretest? Juanma Barranquero
2007-03-12 15:53               ` Pretest? David Kastrup
2007-03-12 20:55           ` Pretest? Chong Yidong
2007-03-12 21:32             ` Pretest? Juanma Barranquero
2007-03-13  1:03               ` Pretest? Chong Yidong
2007-03-13  9:37                 ` Pretest? Juanma Barranquero
2007-03-13  2:43           ` Pretest? Richard Stallman
2007-03-13  9:43             ` Pretest? Juanma Barranquero
2007-03-13  9:52               ` Pretest? Andreas Schwab
2007-03-13 10:09                 ` Pretest? David Kastrup
2007-03-13 10:23                 ` Pretest? Juanma Barranquero
2007-03-19  5:15                   ` Pretest? Richard Stallman
2007-03-14  3:24               ` Pretest? Richard Stallman
2007-03-14  7:10                 ` Pretest? David Kastrup
2007-03-14 13:39                   ` Pretest? Stefan Monnier
2007-03-14 14:04                     ` Pretest? David Kastrup
2007-03-14 14:19                       ` Pretest? Stefan Monnier
2007-03-14  9:18                 ` Pretest? Juanma Barranquero
2007-03-14  9:32                   ` Pretest? David Kastrup
2007-03-14  9:44                     ` Pretest? Juanma Barranquero
2007-03-14 10:07                       ` Pretest? David Kastrup
2007-03-14 10:17                         ` Pretest? Juanma Barranquero
2007-03-14 13:56                 ` Pretest? Chong Yidong
2007-03-14 14:24                   ` Pretest? Stefan Monnier
2007-03-15  1:38                   ` Pretest? Richard Stallman
2007-03-15 10:04                     ` Pretest? Juanma Barranquero
2007-03-16  5:20                       ` Pretest? Richard Stallman
2007-03-15 15:44                     ` Pretest? Chong Yidong
2007-03-16  5:21                       ` Pretest? Richard Stallman
2007-03-16  7:36                         ` Pretest? David Kastrup
2007-02-26  2:39 Pretest? Nick Roberts
2007-02-26  7:19 ` Pretest? David Kastrup
2007-02-26  9:07   ` Pretest? Nick Roberts
2007-02-26  8:47 ` Pretest? Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070315.210810.236560633.mituharu@math.s.chiba-u.ac.jp \
    --to=mituharu@math.s.chiba-u.ac.jp \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    --cc=keramida@ceid.upatras.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.