Mercurial > hg > graal-compiler
diff src/share/vm/oops/constMethod.cpp @ 8712:3efdfd6ddbf2
8003553: NPG: metaspace objects should be zeroed in constructors
Summary: Zero metadata in constructors, not in allocation (and some in constructors)
Reviewed-by: jmasa, sspitsyn
author | coleenp |
---|---|
date | Fri, 08 Mar 2013 11:47:57 -0500 |
parents | 927a311d00f9 |
children | 5939f5953b45 |
line wrap: on
line diff
--- a/src/share/vm/oops/constMethod.cpp Thu Mar 07 14:06:44 2013 -0500 +++ b/src/share/vm/oops/constMethod.cpp Fri Mar 08 11:47:57 2013 -0500 @@ -58,6 +58,12 @@ set_inlined_tables_length(sizes); set_method_type(method_type); assert(this->size() == size, "wrong size for object"); + set_name_index(0); + set_signature_index(0); + set_constants(NULL); + set_max_stack(0); + set_max_locals(0); + set_method_idnum(0); }