diff options
| author | 2023-05-15 15:42:52 +0000 | |
|---|---|---|
| committer | 2023-05-16 12:26:06 +0000 | |
| commit | d7d1e20dbd905ccbce5a669f512bb8fa564c2da6 (patch) | |
| tree | 1569e79a287b4d684c74b722ace48ac4cb7623cf /compiler/optimizing/optimizing_compiler.cc | |
| parent | 9939267f44f997972a05d9cb9c12d97b73596bd8 (diff) | |
Fix libart-compiler ReadBarrier flag init order
`gCompilerReadBarrierOption` from libart-compiler depends on
`gUseReadBarrier` from libart. When both libraries are static linked, the
initialization order is not guaranteed to be correct.
The fix is to replace `gCompilerReadBarrierOption` with a function, so
that it is initialized on first use.
Test: m test-art-host-gtest
Test: m test-art-host-gtest (with static linked libart/libart-compiler)
Bug: 186902856
Change-Id: I386c64c3bd7b42391623b5cded5757366d847b3f
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
0 files changed, 0 insertions, 0 deletions