Mercurial > hg > graal-compiler
comparison src/share/vm/memory/metaspace.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 | a83cd101fd62 |
children | 15401203db6b 82f49e8e2c28 |
comparison
equal
deleted
inserted
replaced
8711:6b803ba47588 | 8712:3efdfd6ddbf2 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
50 | 50 |
51 // Parameters for stress mode testing | 51 // Parameters for stress mode testing |
52 const uint metadata_deallocate_a_lot_block = 10; | 52 const uint metadata_deallocate_a_lot_block = 10; |
53 const uint metadata_deallocate_a_lock_chunk = 3; | 53 const uint metadata_deallocate_a_lock_chunk = 3; |
54 size_t const allocation_from_dictionary_limit = 64 * K; | 54 size_t const allocation_from_dictionary_limit = 64 * K; |
55 const size_t metadata_deallocate = 0xf5f5f5f5; | |
56 | 55 |
57 MetaWord* last_allocated = 0; | 56 MetaWord* last_allocated = 0; |
58 | 57 |
59 // Used in declarations in SpaceManager and ChunkManager | 58 // Used in declarations in SpaceManager and ChunkManager |
60 enum ChunkIndex { | 59 enum ChunkIndex { |