Program Counter Register is the only place where OOM does not occur
The purpose of the program counter is to record the current execution position of the program when the CPU performs a context switch. So the program counter stores the address of the corresponding bytecode instruction.
Note: Who updates the address stored in the program counter? The bytecode execution engine