Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offset_of!의 사용으로 인해 생기는 stack overflow #370

Open
anemoneflower opened this issue Jan 27, 2021 · 1 comment
Open

offset_of!의 사용으로 인해 생기는 stack overflow #370

anemoneflower opened this issue Jan 27, 2021 · 1 comment
Labels
cantfix This cannot be worked on because it can be resolved only after a proper fix in another project

Comments

@anemoneflower
Copy link
Collaborator

Gilnaa/memoffset#49

rv6/kernel-rs/src/arena.rs

Lines 272 to 277 in 5bbd4f0

impl<T: 'static + ArenaObject, const CAPACITY: usize> Spinlock<MruArena<T, CAPACITY>> {
// TODO(rv6): a workarond for https://github.com/Gilnaa/memoffset/issues/49. Assumes
// `list_entry` is located at the beginning of `MruEntry`.
const LIST_ENTRY_OFFSET: usize = 0;
// const LIST_ENTRY_OFFSET: usize = offset_of!(MruEntry<T>, list_entry);
}

@coolofficials coolofficials added invalid This doesn't seem right wontfix This will not be worked on P-low and removed invalid This doesn't seem right wontfix This will not be worked on labels Feb 16, 2021
@coolofficials
Copy link
Collaborator

P-Low로 설정한 이유는 현재(2/17/2021) 저희가 해결할 수 있는 issue가 아닌 Rust offset_of!의 구현 문제인 것 같기 때문입니다.

@Medowhill Medowhill added cantfix This cannot be worked on because it can be resolved only after a proper fix in another project and removed P-low labels Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cantfix This cannot be worked on because it can be resolved only after a proper fix in another project
Projects
None yet
Development

No branches or pull requests

3 participants