Comments (6)
What help is needed to fix this issue?
from bigcache.
On ARM, 386, and 32-bit MIPS, it is the caller's responsibility to arrange for 64-bit alignment of 64-bit words accessed atomically via the primitive atomic functions (types Int64 and Uint64 are automatically aligned). The first word in an allocated struct, array, or slice; in a global variable; or in a local variable (because the subject of all atomic operations will escape to the heap) can be relied upon to be 64-bit aligned.
https://pkg.go.dev/sync/atomic#pkg-notes
So maybe we should switch to atomic.Int64
from int64
from bigcache.
I see 3 options:
- move stats to the top of struct
Line 32 in caa3415
- use
atomic.Int64
- instead of atomic use lock (that's already there)
https://github.com/allegro/bigcache/blob/main/shard.go#L403-L406
@912929782 How to reproduce this issue? Does it happen with go test ./...
we'll need to extend our CI with non x86 arch https://github.com/marketplace/actions/run-on-architecture
from bigcache.
I expect this problem to occur on x86 systems as well
from bigcache.
Forget to say, I am in the library: https://github.com/jpillora/overseer to use bigcache operation, result in this error. @janisz
from bigcache.
We need to reproduce it, best in CI. Maybe we can use qemu for that 🤔
from bigcache.
Related Issues (20)
- Excessive memory allocation HOT 1
- The index(int) of entries(queue.BytesQueue) overflows the hashmap's uint32 value HOT 4
- Memory so high, and when clean not reduce size HOT 5
- Benchmark is not fair, So the speed can't be trusted HOT 4
- Whether it is a bug ? HOT 1
- Why doesn't bigcache consider designing expiration time for each cache key? HOT 4
- How does bigcache handle hash collisions HOT 1
- BigCache is logging allocations it should not HOT 4
- Support for the map? HOT 1
- Is there a memory leak in bigcache? HOT 4
- Add multi-level cache design HOT 2
- Why do we need to configure both lifeWindow and cleanWindow? HOT 2
- GRPC server support HOT 4
- feature: Support uint64 keys without converting to string then back again HOT 6
- Proposal to Integrate SIEVE Eviction Algorithm
- potential misuse of reflect function
- Unused parameter in shards.go [ DEL ] HOT 4
- Improve error handling in BytesQueue.Push function in queue.go HOT 2
- A panic occurred, causing the lock to remain engaged.panic: makeslice: len out of range
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bigcache.