summaryrefslogtreecommitdiffstats
path: root/testsuite/rwlock01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-22 13:42:26 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-23 10:03:10 +0200
commitbe43b79fcabb7551677e2d27c75e2a500e2ba622 (patch)
treeadacb76593743ee5bf58d0ea5df2db97880b5d5a /testsuite/rwlock01
parentInclude missing header file (diff)
downloadrtems-libbsd-be43b79fcabb7551677e2d27c75e2a500e2ba622.tar.bz2
Replace RTEMS objects with custom implementation
Performance analysis revealed that the standard RTEMS objects are a major bottleneck. The object get mechanism and attribute checks at runtime have a significant overhead. Use a custom implementation for synchronization primitives. This drops also the size of the synchronization primitives considerably.
Diffstat (limited to 'testsuite/rwlock01')
-rw-r--r--testsuite/rwlock01/test_main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/testsuite/rwlock01/test_main.c b/testsuite/rwlock01/test_main.c
index fc4b2694..3e121c38 100644
--- a/testsuite/rwlock01/test_main.c
+++ b/testsuite/rwlock01/test_main.c
@@ -188,9 +188,6 @@ test_rw_non_recursive(test_context *ctx)
rw_rlock(rw);
/* FIXME: We use a mutex implementation */
assert(rw_wowned(rw));
- /* FIXME: We always allow recursion */
- rw_rlock(rw);
- rw_runlock(rw);
rw_runlock(rw);
rw_rlock(rw);
@@ -228,9 +225,6 @@ test_rw_non_recursive(test_context *ctx)
rw_wlock(rw);
assert(rw_wowned(rw));
- /* FIXME: We always allow recursion */
- rw_wlock(rw);
- rw_wunlock(rw);
rw_wunlock(rw);
rw_wlock(rw);