1. A system for detecting a data race, comprising: a memory having stored therein computer-executable instructions for storing an object and a memory location within the object; a computer processor that executes the computer-executable instructions; and logic configured to detect a first access to the object, determine whether the first access is associated with a suspicious pattern, and refine a pattern detection granularity from the object to the memory location within the object if a determination is made that the first access is associated with the suspicious pattern.