Go to main content
Oracle® Developer Studio 12.5: Thread Analyzer User's Guide

Exit Print View

Updated: June 2016
 
 

Tips for Using Thread Analyzer

This appendix includes some tips for using Thread Analyzer.

Compiling the Application

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.