What does the jsr keyword mean?

前端 未结 6 1408
栀梦
栀梦 2021-01-18 20:21

I\'m looking at some Java code, and I\'ve noticed the following:

if (!foo(bar, baz, qux)) {
    i = 0; jsr 433;
}

javac chokes on it, sayin

6条回答
  •  日久生厌
    2021-01-18 21:08

    JSR (which stands for Jump Subroutine) is part of the Java Virtual Machine Specification. It's a instruction set for the JVM.

    Brief description

    The address of the opcode of the instruction immediately following this jsr instruction is pushed onto the operand stack as a value of type returnAddress.

    This can be found on the JVM book 2nd edition.

提交回复
热议问题