thr_rwlock.c (0ab1bfc7b28f495718a3dc4e4bc0faaea5684b0f) | thr_rwlock.c (c7904405a8d47f64c3b0e73158572e2dc8ef0217) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1998 Alex Nash 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 24 unchanged lines hidden (view full) --- 33#include <limits.h> 34#include <stdlib.h> 35 36#include "namespace.h" 37#include <pthread.h> 38#include "un-namespace.h" 39#include "thr_private.h" 40 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1998 Alex Nash 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 24 unchanged lines hidden (view full) --- 33#include <limits.h> 34#include <stdlib.h> 35 36#include "namespace.h" 37#include <pthread.h> 38#include "un-namespace.h" 39#include "thr_private.h" 40 |
41_Static_assert(sizeof(struct pthread_rwlock) <= PAGE_SIZE, | 41_Static_assert(sizeof(struct pthread_rwlock) <= THR_PAGE_SIZE_MIN, |
42 "pthread_rwlock is too large for off-page"); 43 44__weak_reference(_thr_rwlock_destroy, pthread_rwlock_destroy); 45__weak_reference(_thr_rwlock_destroy, _pthread_rwlock_destroy); 46__weak_reference(_thr_rwlock_init, pthread_rwlock_init); 47__weak_reference(_thr_rwlock_init, _pthread_rwlock_init); 48__weak_reference(_Tthr_rwlock_rdlock, pthread_rwlock_rdlock); 49__weak_reference(_Tthr_rwlock_rdlock, _pthread_rwlock_rdlock); --- 335 unchanged lines hidden --- | 42 "pthread_rwlock is too large for off-page"); 43 44__weak_reference(_thr_rwlock_destroy, pthread_rwlock_destroy); 45__weak_reference(_thr_rwlock_destroy, _pthread_rwlock_destroy); 46__weak_reference(_thr_rwlock_init, pthread_rwlock_init); 47__weak_reference(_thr_rwlock_init, _pthread_rwlock_init); 48__weak_reference(_Tthr_rwlock_rdlock, pthread_rwlock_rdlock); 49__weak_reference(_Tthr_rwlock_rdlock, _pthread_rwlock_rdlock); --- 335 unchanged lines hidden --- |