Skip to content

Conversation

@luodeb
Copy link

@luodeb luodeb commented Jan 20, 2026

  • feat: update dependencies and implement LRU cache
  • add LRU cache implementation in core/src/lrucache.rs
  • refactor memory management to use new LRU cache methods
  • feat: remove uluru dependency from Cargo files

  • feat: reorganize lrucache module import in lib.rs and mm.rs

Description

Implementation

Additional Context

* feat: update dependencies and implement LRU cache
- bump spin to 0.10.0 and chrono to 0.4.43
- modify Makefile to disable VSOCK
- add LRU cache implementation in core/src/lrucache.rs
- refactor memory management to use new LRU cache methods

* feat: enable VSOCK support in QEMU options

* feat: remove uluru dependency from Cargo files

* feat: reorganize lrucache module import in lib.rs and mm.rs
Copilot AI review requested due to automatic review settings January 20, 2026 01:12
@luodeb luodeb changed the title fix license (#150) Implement LRU cache (#150) Jan 20, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces the external uluru dependency with a custom LRU cache implementation to address licensing concerns (implied by the PR title "fix license"). The implementation provides equivalent functionality for caching ELF file entries in the memory management module.

Changes:

  • Implemented a custom LruCache with doubly-linked list structure using array indices
  • Migrated from uluru::LRUCache to the new LruCache in the memory management module
  • Removed the uluru dependency from Cargo files and updated chrono to version 0.4.43

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
core/src/lrucache.rs New custom LRU cache implementation with fixed-size array storage and intrusive linked list
core/src/mm.rs Updated to use new LruCache API (access, put, peek_mru, items, flush methods)
core/src/lib.rs Added lrucache module to the module tree
core/Cargo.toml Removed uluru dependency
Cargo.lock Removed uluru package and updated chrono to 0.4.43

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

luodeb and others added 3 commits January 20, 2026 09:18
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…he more clearly and ensure that CAP is suitable for u16 index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant