Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c.
  • Loading branch information
Ulrich Drepper committed Nov 25, 2004
1 parent f1f2caf commit bca2d20
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2004-11-24 Ulrich Drepper <drepper@redhat.com>

* sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c.

* Makefile (libpthread-routines): Add pthread_setschedprio.
* Versions [libpthread, GLIBC_2.3.4]: Add pthread_setschedprio.
* sysdeps/pthread/pthread.h: Declare pthread_setschedprio.
Expand Down
2 changes: 1 addition & 1 deletion nptl/allocatestack.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
pd = get_cached_stack (&size, &mem);
if (pd == NULL)
{
/* To avoid aliasing effects on a larger scale then pages we
/* To avoid aliasing effects on a larger scale than pages we
adjust the allocated stack size if necessary. This way
allocations directly following each other will not have
aliasing problems. */
Expand Down
9 changes: 8 additions & 1 deletion nptl/sysdeps/x86_64/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
# This file is part of the GNU C Library.

# The GNU C Library is free software; you can redistribute it and/or
Expand All @@ -19,3 +19,10 @@
ifeq ($(subdir),csu)
gen-as-const-headers += tcb-offsets.sym
endif

ifeq ($(subdir),nptl)
# P4s have problems with 4M aliasing. We disturb the allocation of stacks
# just enough so the subsequent allocations do not use stack address
# (mod 4M) == 0.
CFLAGS-pthread_create.c += -DMULTI_PAGE_ALIASING=65536
endif

0 comments on commit bca2d20

Please sign in to comment.