강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

호눅스님의 프로필 이미지
호눅스

작성한 질문수

더 자바, 코드를 조작하는 다양한 방법

JVM 구조

PC 레지스터의 설명 부분에 오류가 있는 것 같습니다.

해결된 질문

작성

·

322

1

안녕하세요? 기선님

영상에서 작은 오류를 발견한 것 같은데요. PC 레지스터는 현재 실행중인스트럭션의 주소가 저장되는 게 맞는 듯합니다.

The pc Register

The Java Virtual Machine can support many threads of execution at once (JLS §17). Each Java Virtual Machine thread has its own pc (program counter) register. At any point, each Java Virtual Machine thread is executing the code of a single method, namely the current method (§2.6) for that thread. If that method is not native, the pc register contains the address of the Java Virtual Machine instruction currently being executed. If the method currently being executed by the thread is native, the value of the Java Virtual Machine's pc register is undefined. The Java Virtual Machine's pc register is wide enough to hold a returnAddress or a native pointer on the specific platform.

(출처: 오라클)

답변 2

5

백기선님의 프로필 이미지
백기선
지식공유자

네 이전에 다른 분이 같은 부분을 지적해 주셔서 고쳐 놨습니다. 감사합니다. :)

2

호눅스님의 프로필 이미지
호눅스
질문자

앗 다시 살펴보니 문서에는 수정이 되어 있네요 ㅎㅎ. 

호눅스님의 프로필 이미지
호눅스

작성한 질문수

질문하기