Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix code bug & optimize the memory usage in DefaultMappedFile (#4678)
* optimize the memory usage in DefaultMappedFile: use AtomicIntegerFieldUpdater instead of AtomicInteger * fix code bug: if the initial cursor of listIterator equals zero, the previous element will always null. * modify constant name Co-authored-by: shanpengyu <shanpengyu@bytedance.com>
- Loading branch information
1 parent
e3c2111
commit d17a7f0
Showing
2 changed files
with
56 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters