On 09/26/12 05:49, Pavel Heimlich, a.k.a. hajma wrote:
2012/9/26 Liviu Nicoara <nikko...@hates.ms>:
On 9/25/12 7:56 PM, Stefan Teleman (JIRA) wrote:
Anybody around here, except Stefan, who has access to a SPARC V8 machine
updated to the specified kernel update or later, and who is willing to run a
simple test program? It's a 5 minute job at most.
Please point me to the test program.
I attached it. IIRC Solaris had both Solaris threads API and a POSIX threads
API on top of it. Could you please give it a run with MUTEX defined to both
mutex_t and pthread_mutex_t? Might need to tweak the includes.
Thanks a bunch!
#define MUTEX mutex_t
int main ()
MUTEX m ;
printf ("%lu\n", sizeof (MUTEX));
for (size_t i = 0; i < sizeof m / sizeof *m; ++i)
printf ("%p ", &m [i]);
S s ;
for (size_t i = 0; i < sizeof s / sizeof *s; ++i)
printf ("%p ", &s [i].m);