summaryrefslogtreecommitdiff
path: root/tools/warn/java_warn_patterns.py
diff options
context:
space:
mode:
author Zhi Dou <zhidou@google.com> 2025-02-21 21:11:30 +0000
committer Zhi Dou <zhidou@google.com> 2025-02-21 22:57:30 +0000
commit59be11802ed020d05141a08d933168384d726803 (patch)
tree1da57971013a29f7d46c15ad7c1a35fdec2bbe3e /tools/warn/java_warn_patterns.py
parent2b5a4066fad3974a1fbe442cd3c373e13a577fea (diff)
new buffer reader for buffer read
This change will create new buffer reader when the code needs to read the buffer read. Previously there is only new buffer reader in the class, so if there are multiple threads call the get method in PackageTable, then these threads will modify the buffer position can cause a race condition. This change will create new buffer reader when the code needs to read the buffer in the method. so each thread will have its own instance of the reader, and the reader will maintain the position. Test: atest aconfig_storage_file.test.java Bug: 397997135 Flag: EXAMPT refactor Change-Id: I31ac2ab661ec1711f817068917915ae63e1e8dd4
Diffstat (limited to 'tools/warn/java_warn_patterns.py')
0 files changed, 0 insertions, 0 deletions