]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add explanatory comment to set_tid_address wrapper.
authorNicholas Nethercote <n.nethercote@gmail.com>
Wed, 17 Nov 2004 18:24:10 +0000 (18:24 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Wed, 17 Nov 2004 18:24:10 +0000 (18:24 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3037

coregrind/vg_syscalls.c

index 66cf3b10638291103d123a32377128806a559ddb..342d3798e31c7b5c04200968d6a732b7915e9d3b 100644 (file)
@@ -1128,6 +1128,14 @@ POST(sys_ptrace)
 
 PRE(sys_set_tid_address, Special)
 {
+   // We don't let this syscall run, and don't do anything to simulate it
+   // ourselves -- it becomes a no-op!  Why?  Tom says:
+   // 
+   //   I suspect this is deliberate given that all the user level threads
+   //   are running in the same kernel thread under valgrind so we probably
+   //   don't want to be calling the actual system call here.
+   //
+   // Hmm.
    PRINT("sys_set_tid_address ( %p )", arg1);
    PRE_REG_READ1(long, "set_tid_address", int *, tidptr);
 }