浏览代码

fix compile issue when DOASSERTS=y

Pthread pid caching was removed recently but an assert is still
present which checks pthread->pid, and this breaks the build when
debugging is enabled.

Reported-By: Bogdan Harjoc <harjoc@gmail.com>
Waldemar Brodkorb 8 年之前
父节点
当前提交
22e504ceb0
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      libpthread/nptl/pthread_getattr_np.c

+ 0 - 1
libpthread/nptl/pthread_getattr_np.c

@@ -66,7 +66,6 @@ pthread_getattr_np (
     {
     {
       /* No stack information available.  This must be for the initial
       /* No stack information available.  This must be for the initial
 	 thread.  Get the info in some magical way.  */
 	 thread.  Get the info in some magical way.  */
-      assert (abs (thread->pid) == thread->tid);
 
 
       /* Stack size limit.  */
       /* Stack size limit.  */
       struct rlimit rl;
       struct rlimit rl;