72 method_type, |
72 method_type, |
73 CHECK_NULL); |
73 CHECK_NULL); |
74 |
74 |
75 int size = Method::size(access_flags.is_native()); |
75 int size = Method::size(access_flags.is_native()); |
76 |
76 |
77 return new (loader_data, size, false, THREAD) Method(cm, access_flags, size); |
77 return new (loader_data, size, false, MetaspaceObj::MethodType, THREAD) Method(cm, access_flags, size); |
78 } |
78 } |
79 |
79 |
80 Method::Method(ConstMethod* xconst, AccessFlags access_flags, int size) { |
80 Method::Method(ConstMethod* xconst, AccessFlags access_flags, int size) { |
81 No_Safepoint_Verifier no_safepoint; |
81 No_Safepoint_Verifier no_safepoint; |
82 set_constMethod(xconst); |
82 set_constMethod(xconst); |