summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2016-06-01 10:48:19 -0700
committerMathieu Chartier <mathieuc@google.com>2016-06-01 11:02:07 -0700
commitc7d3f4b8c294f36209ea2c129f9714a36ae1ec6b (patch)
tree3ac0e2896bde73f089c77fbc07e935a804358d36 /compiler/optimizing/graph_visualizer.cc
parenta21decf759af7dc29f64ff7ee02a758397578cd3 (diff)
Fix race with host_dlopen_handles_
Thread 1 opens an already opened oat file. Thread 2 dlcloses the oat file and removes it from host_dlopen_handles_. Thread 1 checks that it is not already in host_dlopen_handles_ and proceeds to return the oat file. The problem now is that the BSS is not cleared since it is the same oat file that was opened earlier. The fix is to just hold the lock for dlopen / dlclose. This only affects contention on host. Bug: 28992179 Bug: 28990799 Bug: 28826195 Change-Id: I126e3d4da69f493b21604205eeea75352a6cf736
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions