Repository navigation
[wie-2026-09-22-lgt-object-reference-gate-adopt-p0] fix(jvm): GC 도달성 순회가 호스트 오류를 Result 로 전파한다 - #95
Merged
Conversation
…순회가 호스트 오류를 Result 로 전파한다 find_reachable_objects 등 순회 4함수를 Result 로 바꿔 get_field·get_static_field·load 의 .unwrap() 3곳을 ? 로, 내부 불변식 unwrap 2곳을 JavaError::Unraisable 로 바꿨다. 오류가 나면 순회를 중단하고 아무것도 해제하지 않는다. collect_garbage 서명 불변 · 새 변종 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Jun025
deleted the
wie-2026-09-22-lgt-object-reference-gate-adopt-p0
branch
September 23, 2026 21:29
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
무엇을
jvm/src/garbage_collector.rs:determine_garbage·find_reachable_objects·find_static_reachable_objects·find_all_fields→Result.get_field·get_static_field·배열load의.unwrap()3곳 →?· 불변식.unwrap()2곳(as_array_instance, 슈퍼클래스get_class) →JavaError::Unraisable.Jvm::collect_garbage:determine_garbage(..)?(서명Result<usize>불변).왜
wie 제안
2026-09-22-lgt-object-reference-gate#p0의 나머지 절반. 변종은 #94(JavaError::Unraisable)에서 끝났고, 이 PR 없이는 호스트가 올린 오류가 GC 경로에서 다시 패닉이 된다.파열 범위
공개 API 변경 0 (
mod garbage_collector비공개) · 새JavaError변종 0 → match 파열 0.검증
jvm/tests/test_gc_host_error.rsok ↔get_field(..)?를.unwrap()으로 되돌리면panicked at jvm/src/garbage_collector.rs:103:55FAILED.상세
docs/worklog/2026-09-24-gc-walk-propagates-host-errors.md.🤖 Generated with Claude Code