Responsibilities of JVM bytecode verifier

前端 未结 3 663
别跟我提以往
别跟我提以往 2020-12-24 15:13

Could someone list major tasks that the bytecode verifier has to perform to guarantee correctness of the program? Is there a standard, minimal set of responsibilities define

3条回答
  •  余生分开走
    2020-12-24 15:38

    It does the following:

    • There are no operand stack overflows or underflows
    • The types of the parameters of all bytecode instructions are known to always be correct
    • Object field accesses are known to be legal--private, public, or protected

    Reference: http://java.sun.com/docs/white/langenv/Security.doc3.html

提交回复
热议问题