comparison src/share/vm/oops/methodOop.hpp @ 2334:dbad0519a1c4

6845426: non-static <clinit> method with no args is called during the class initialization process Summary: Only call <clinit> with ACC_STATIC for classfiles with version > 50 Reviewed-by: acorn, dholmes, coleenp
author kamg
date Fri, 04 Mar 2011 14:40:46 -0500
parents f77b3ec064b0
children 799d8ccf63cf
comparison
equal deleted inserted replaced
2333:f767174aac14 2334:dbad0519a1c4
495 bool is_accessor() const; 495 bool is_accessor() const;
496 496
497 // returns true if the method is an initializer (<init> or <clinit>). 497 // returns true if the method is an initializer (<init> or <clinit>).
498 bool is_initializer() const; 498 bool is_initializer() const;
499 499
500 // returns true if the method is static OR if the classfile version < 51
501 bool has_valid_initializer_flags() const;
502
503 // returns true if the method name is <clinit> and the method has
504 // valid static initializer flags.
505 bool is_static_initializer() const;
506
500 // compiled code support 507 // compiled code support
501 // NOTE: code() is inherently racy as deopt can be clearing code 508 // NOTE: code() is inherently racy as deopt can be clearing code
502 // simultaneously. Use with caution. 509 // simultaneously. Use with caution.
503 bool has_compiled_code() const { return code() != NULL; } 510 bool has_compiled_code() const { return code() != NULL; }
504 511