mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8003553: NPG: metaspace objects should be zeroed in constructors
Zero metadata in constructors, not in allocation (and some in constructors) Reviewed-by: jmasa, sspitsyn
This commit is contained in:
parent
4cdcd6dc13
commit
addd95f165
13 changed files with 111 additions and 97 deletions
|
@ -58,6 +58,12 @@ ConstMethod::ConstMethod(int byte_code_size,
|
|||
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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue