Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
8711:6b803ba47588 | 8712:3efdfd6ddbf2 |
---|---|
56 set_code_size(byte_code_size); | 56 set_code_size(byte_code_size); |
57 set_constMethod_size(size); | 57 set_constMethod_size(size); |
58 set_inlined_tables_length(sizes); | 58 set_inlined_tables_length(sizes); |
59 set_method_type(method_type); | 59 set_method_type(method_type); |
60 assert(this->size() == size, "wrong size for object"); | 60 assert(this->size() == size, "wrong size for object"); |
61 set_name_index(0); | |
62 set_signature_index(0); | |
63 set_constants(NULL); | |
64 set_max_stack(0); | |
65 set_max_locals(0); | |
66 set_method_idnum(0); | |
61 } | 67 } |
62 | 68 |
63 | 69 |
64 // Deallocate metadata fields associated with ConstMethod* | 70 // Deallocate metadata fields associated with ConstMethod* |
65 void ConstMethod::deallocate_contents(ClassLoaderData* loader_data) { | 71 void ConstMethod::deallocate_contents(ClassLoaderData* loader_data) { |