History log of /fuchsia/zircon/system/utest/core/pthread/pthread.cpp
Revision Date Author Comments
# 0cb25730 29-Jan-2018 Kendal Harland <kjharland@google.com>

[utest][pthread] Fix typo in pthread test message.

Change-Id: I82d83fa0b469ed73c913ab3364a160024090e064


# b917fe1b 09-Oct-2017 George Kulakowski <kulakowski@google.com>

[utest] Make unexposed variables static

Change-Id: I016d058e7e83ea0b627ebd4a1da6e4ce97919617


# f3e2126c 12-Sep-2017 Roland McGrath <mcgrathr@google.com>

[zx] Magenta -> Zircon

The Great Renaming is here!

Change-Id: I3229bdeb2a3d0e40fb4db6fec8ca7d971fbffb94


# 4b913ba9 10-Aug-2017 Mark Seaborn <mseaborn@google.com>

[unittest] Use ASSERT_NE()/EXPECT_NE() instead of ASSERT_NEQ()/EXPECT_NEQ()

This is to make the interface more consistent with gtest, which uses
the _NE suffix rather than _NEQ for "not equal".

Change-Id: Ic03fda7322ab79cbd806c8f849b6956d201c6d45


# bbcb4c62 03-Apr-2017 Todd Eisenberger <teisenbe@google.com>

[time] Switch callers of syscalls with timeouts to use conversion function

This is in preparation for moving syscalls to absolute deadlines rather
than relative timeouts.

Change-Id: Ic85abbf76f34fbce7899c2505be840e3d3dcf7ff


# 7848ba22 20-Feb-2017 Roland McGrath <mcgrathr@google.com>

[utest][core][pthread] Don't expect reported thread stack to contain address-taken locals

Under -fsanitize=safe-stack, address-taken locals are not on the main
(safe) thread stack reported by pthread_attr_getstack. So test using
the frame address instead, which always will be.

Change-Id: Id57f6b070ff913850e2cabb12a852148ddd92b31


# 4d86a7d4 06-Dec-2016 Roland McGrath <mcgrathr@google.com>

[ulib][musl] Declare pthread_attr_setstack as deprecated, and remove it

We'd like not to support explicit allocation of stacks, to facilitate
both enforced randomized placement and -fsanitize=safe-stack mode.
For now, just remove the entry point so we can catch any higher-level
code that is attempting to use it. Later we can simplify and clean up
the thread-creation internals without this option.

The declaration is left behind so there is a more helpful error
message for source code that uses this standard API.

Change-Id: Id8ed5e6697f9fbe0eecdaf8317a109e6ca45225d


# efef4bdf 20-Oct-2016 Roland McGrath <mcgrathr@google.com>

[ulib][musl] Fix pthread_getattr_np stack bounds for initial thread

There's no good reason to make the initial thread a special case
in how the data is stored. Make the startup code just store the
discovered bounds of the initial thread's stack in the initial
thread's per-thread structure.

Also adds a test for pthread_attr_getstack on both initial and
additional threads.

MG-262 #done

Change-Id: Ifd21a46f0d7dcb314d29a12471adeabc5e062f25


# 43a5cd1d 26-Aug-2016 Todd Eisenberger <teisenbe@google.com>

[time] Update some code to use new time convenience macros

Change-Id: I6289116690e46948c0f2d39e68939331173335d7


# c8dc7900 25-Aug-2016 George Kulakowski <kulakowski@google.com>

[runtime][musl] Make callers of mxr_threads allocate stacks

This splits mxr thread creation apart in the same way that the
underlying mx thread syscalls are. It lifts the decision about thread
stack size up to pthreads, where either the attributes or the pthread
defaults can be used, rather than baking this decisions into runtime.

Change-Id: I26323222482e2b7f6fb48ab3fc1b5d58a04ae4e4


# ffd06b77 22-Aug-2016 George Kulakowski <kulakowski@google.com>

[tls] Reintroduce ELF TLS into musl

Change-Id: I87a7458387aa65b9d1534e51ad5f3abed8587af6


# 66a201f1 16-Aug-2016 Brian Swetland <swetland@frotz.net>

[system] align license and license banners with Fuchsia

This adjusts the Magenta userspace code to match the prevailing
license in Fuchsia (three-clause BSD), using the same banner
and license text.

Change-Id: I6b6d79435c5dbaa32027888874849e4f47aaa7be


# 39b3f217 19-Jul-2016 Ankur Mittal <anmittal@google.com>

[utest] Support categories

This will produce single binary from mxr tests and also seperate binary
for each test

Change-Id: I9345fbeab5751dda356cfd47a766c09957211923