Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Studio 12.3: Thread Analyzer User's Guide Oracle Solaris Studio 12.3 Information Library |
1. What is the Thread Analyzer and What Does It Do?
A. APIs Recognized by the Thread Analyzer
B.2 Instrumenting the Application for Data Race Detection
Tips for compiling an application before collecting an experiment:
Use the -g compiler option when building application binaries. This will allow the Thread Analyzer to report line number information for data races.
Compile with an optimization level less than -xO3 when building application binaries. Compiler transformations may distort line number information and make the results difficult to understand.
The Thread Analyzer interposes on the memory-allocation routines shown in A.2.3 Memory-Allocation APIs. Linking to archive versions of memory allocation libraries may result in false positive data races being reported.