This website requires JavaScript.
Explore
Help
Sign In
picnoir
/
libglvnd
Watch
1
Star
0
Fork
You've already forked libglvnd
0
Code
Issues
Pull requests
Packages
Projects
Releases
Wiki
Activity
3e03924a53
libglvnd
/
tests
/
testgldispatch_patched_thr.sh
8 lines
81 B
Bash
Raw
Normal View
History
Unescape
Escape
tests: Add tests for the multithreaded path in libGLdispatch This is important for testing the TSD stubs, which have a separate fast path for single-threaded programs. The TSD stubs start with a simple global variable to hold the dispatch table so that a single-threaded program doesn't have to deal with the overhead of calling pthread_getspecific. When a second thread comes along, it sets that variable to NULL, which makes the stubs call pthread_getspecific instead. This change adds a flag to the testgldispatch test program that tells it to call into libGLdispatch from two threads to force it into its multi-threaded mode. It also adds three new test scripts, which are the same testgldispatch tests but for the multithreaded path.
2018-09-19 23:40:59 +02:00
#!/bin/sh
tests: Add tests for the end of the dispatch table. Add a '-l' flag to testgldispatch, which tells it to test a generated stub at the very end of the dispatch table. On PPC, looking up a function past index 4096 requires more than just a simple register+immediate load, so this makes sure that it's correct.
2019-11-28 16:30:38 +01:00
set
-e
tests: Add -t to testgldispatch patched thr test Since right now it tests the same thing as the patch test
2019-11-04 20:02:34 +01:00
./testgldispatch -s -g -p -t
tests: Add tests for the end of the dispatch table. Add a '-l' flag to testgldispatch, which tells it to test a generated stub at the very end of the dispatch table. On PPC, looking up a function past index 4096 requires more than just a simple register+immediate load, so this makes sure that it's correct.
2019-11-28 16:30:38 +01:00
./testgldispatch -s -g -p -t -l
tests: Add tests for the multithreaded path in libGLdispatch This is important for testing the TSD stubs, which have a separate fast path for single-threaded programs. The TSD stubs start with a simple global variable to hold the dispatch table so that a single-threaded program doesn't have to deal with the overhead of calling pthread_getspecific. When a second thread comes along, it sets that variable to NULL, which makes the stubs call pthread_getspecific instead. This change adds a flag to the testgldispatch test program that tells it to call into libGLdispatch from two threads to force it into its multi-threaded mode. It also adds three new test scripts, which are the same testgldispatch tests but for the multithreaded path.
2018-09-19 23:40:59 +02:00
Reference in a new issue
Copy permalink