linux-um archives
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Blaisorblade <blaisorblade@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Fwd: Re: Why uml-add-tls-support-debug-check-never-works is needed (was: Re: Fwd: Proposed additions to the ptrace(2) manpage, take 2)
Date: Sun, 26 Mar 2006 15:38:55 -0500	[thread overview]
Message-ID: <20060326203855.GA4549@ccure.user-mode-linux.org> (raw)
In-Reply-To: <200603262003.58195.blaisorblade@yahoo.it>

On Sun, Mar 26, 2006 at 08:03:57PM +0200, Blaisorblade wrote:
> Code which two people aren't able to understand until two years later _wants_
> at least some comments and if possible restructuring. 

I'd say this is more of an oversight than obscure code that the author 
doesn't even understand.

> The problem is how, and
> I'm not looking at the code right now. Off the top of my head, I get only
> silly ideas, since we can't join the end of switch_to_skas() and
> fork_handler().

Yeah, I only got silly ideas too.  Probably the same ones :-)

> I didn't study softints, but setjmp() is supposed to use jmp_buf's, not
> sigjmp_buf's (I know they are (almost) equal in the glibc headers I've seen,
> but that equality is not guaranteed).

Yes, good point.  You didn't have to even look at libc headers - just
pointing at the man page is enough.

> If you don't pass 1 and INIT_JMP_REMOVE_SIGSTACK but two further defines like
> "JUMP_TO_INITIAL_THREAD" and "JUMP_BACK" (or actually meaningful names) the
> caller won't know more than it knows now. Or you can keep the callers intact
> - just by making switch_threads() and thread_wait() two inline
> wrappers.

Yup, that would work, though it probably wouldn't shrink the source -
the merged code will be less than the new function boilerplate and the
calls to it.

				Jeff


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2006-03-26 20:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-26 18:03 [uml-devel] Fwd: Re: Why uml-add-tls-support-debug-check-never-works is needed (was: Re: Fwd: Proposed additions to the ptrace(2) manpage, take 2) Blaisorblade
2006-03-26 20:38 ` Jeff Dike [this message]
2006-03-26 20:40 ` Jeff Dike
2006-03-27 22:56   ` [uml-devel] Fwd: Re: Why uml-add-tls-support-debug-check-never-works is needed Blaisorblade

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=20060326203855.GA4549@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=blaisorblade@yahoo.it \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox