Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpthread_dbg Obsolete thread_type in td_thread_info_st...



details:   https://anonhg.NetBSD.org/src/rev/851f5a809023
branches:  trunk
changeset: 349068:851f5a809023
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Nov 22 04:51:06 2016 +0000

description:
Obsolete thread_type in td_thread_info_st in <pthread_dbg.h>

The thread_type is irrelevant as all local POSIX threads are in user-space.

Keep the thread_type member in td_thread_info_st to preserve ABI
compatibility.

Later the remnants from M:N will be refactored in one go with library ABI
version bump.

Sponsored by <The NetBSD Foundation>

diffstat:

 lib/libpthread_dbg/pthread_dbg.c |  6 ++----
 lib/libpthread_dbg/pthread_dbg.h |  8 ++++----
 2 files changed, 6 insertions(+), 8 deletions(-)

diffs (49 lines):

diff -r 7f54cefdac48 -r 851f5a809023 lib/libpthread_dbg/pthread_dbg.c
--- a/lib/libpthread_dbg/pthread_dbg.c  Tue Nov 22 04:17:05 2016 +0000
+++ b/lib/libpthread_dbg/pthread_dbg.c  Tue Nov 22 04:51:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_dbg.c,v 1.50 2016/11/22 04:17:05 kamil Exp $   */
+/*     $NetBSD: pthread_dbg.c,v 1.51 2016/11/22 04:51:06 kamil Exp $   */
 
 /*-
  * Copyright (c) 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_dbg.c,v 1.50 2016/11/22 04:17:05 kamil Exp $");
+__RCSID("$NetBSD: pthread_dbg.c,v 1.51 2016/11/22 04:51:06 kamil Exp $");
 
 #define __EXPOSE_STACK 1
 
@@ -235,8 +235,6 @@
                info->thread_state = TD_STATE_UNKNOWN;
        }
 
-       info->thread_type = TD_TYPE_USER;
-
        if ((val = READ(thread->proc, OFFSET(thread, pt_stack),
            &info->thread_stack, sizeof(stack_t))) != 0)
                return val;
diff -r 7f54cefdac48 -r 851f5a809023 lib/libpthread_dbg/pthread_dbg.h
--- a/lib/libpthread_dbg/pthread_dbg.h  Tue Nov 22 04:17:05 2016 +0000
+++ b/lib/libpthread_dbg/pthread_dbg.h  Tue Nov 22 04:51:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_dbg.h,v 1.8 2016/11/21 03:02:34 kamil Exp $    */
+/*     $NetBSD: pthread_dbg.h,v 1.9 2016/11/22 04:51:06 kamil Exp $    */
 
 /*-
  * Copyright (c) 2002 Wasabi Systems, Inc.
@@ -84,9 +84,9 @@
 #define        TD_STATE_UNUSED6        6       /* former TD_STATE_SUSPENDED for SA */
 #define        TD_STATE_DEAD           7
 
-#define        TD_TYPE_UNKNOWN 0
-#define        TD_TYPE_USER    1
-#define        TD_TYPE_SYSTEM  2
+#define        TD_TYPE_UNUSED0 0
+#define        TD_TYPE_UNUSED1 1
+#define        TD_TYPE_UNUSED2 2
 
 typedef struct {
        caddr_t sync_addr;      /* Address within the process */



Home | Main Index | Thread Index | Old Index