summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorErwin Coumans <erwincoumans@erwincoumans-macbookpro2.roam.corp.google.com>2018-12-04 20:00:05 +0100
committerErwin Coumans <erwincoumans@erwincoumans-macbookpro2.roam.corp.google.com>2018-12-04 20:00:05 +0100
commit74223ced566f9bdefb5f53f970249a197c1127bc (patch)
tree64068d9a29c8cdef2a0f238011ba6248ebbb139c /src
parente3c03401c80b23d3e8cc67ffbf0efcd5885e556d (diff)
downloadbullet3-74223ced566f9bdefb5f53f970249a197c1127bc.tar.gz
disable per-thread tsan issue, todo: checkout why it fails
Diffstat (limited to 'src')
-rw-r--r--src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp b/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp
index 69e9ee748..7b39dbdc0 100644
--- a/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp
+++ b/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp
@@ -247,7 +247,9 @@ void btDbvtBroadphase::rayTest(const btVector3& rayFrom, const btVector3& rayTo,
// instead of just a local.
int threadIndex = btGetCurrentThreadIndex();
btAlignedObjectArray<const btDbvtNode*> localStack;
- if (threadIndex < m_rayTestStacks.size())
+ //todo(erwincoumans, "why do we get tsan issue here?")
+ if (0)//threadIndex < m_rayTestStacks.size())
+ //if (threadIndex < m_rayTestStacks.size())
{
// use per-thread preallocated stack if possible to avoid dynamic allocations
stack = &m_rayTestStacks[threadIndex];