Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Mar 12, 2018
1 parent 5cda846 commit 2e0eef4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public class YourPoolAllocator<T> extends AbstractAllocator<T> {
// if uses thread local as L1 cache, thread allocator will try to acquire without delegating to
// parent allocator, but always delegate to parent to release. that requires your allocator is
// able to remove duplication on release.
      //
//
// if pool object is invalidated, your allocator should delete it and invoke super.consume(t).
//
// please refer to DefaultAllocator and AllocationQueue for more details.
Expand Down
2 changes: 1 addition & 1 deletion README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public class YourPoolAllocator<T> extends AbstractAllocator<T> {
// 如果应用ThrealAllocator作为L1缓存, ThrealAllocator将会尝试在TheadLocal内获得pool中的对象, 如果没
// 获取到合法的对象,会尝试调用父分配器的acquire方法获得对象, 但是在release的过程中, 会一直调用
// 父分配器的release方法释放对象, 这样要求你自己实现的分配器在release的时候能够去除重复的对象.
      //
//
// 如果pool中对象不合法, 你的分配器应该删除这个对象并调用 super.consume(t).
//
// 详细实现请参照DefaultAllocator 和 AllocationQueue.
Expand Down

0 comments on commit 2e0eef4

Please sign in to comment.