This appendix includes some tips for using Thread Analyzer.
Tips for compiling an application before collecting an experiment:
Use the –g compiler option when building application binaries. This enables Thread Analyzer to report line number information for data races and deadlocks.
Compile with an optimization level less than –xO3 when building application binaries. Compiler transformations might distort line number information and make the results difficult to understand.
Thread Analyzer interposes on the routines shown in Memory Allocation APIs. Linking to archive versions of memory allocation libraries might result in false positive data races being reported.