Mercurial > hg > truffle
diff src/share/vm/oops/instanceKlass.hpp @ 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 | 35ef86296a5d |
line wrap: on
line diff
--- a/src/share/vm/oops/instanceKlass.hpp Thu Mar 07 14:06:44 2013 -0500 +++ b/src/share/vm/oops/instanceKlass.hpp Fri Mar 08 11:47:57 2013 -0500 @@ -269,6 +269,8 @@ JvmtiCachedClassFieldMap* _jvmti_cached_class_field_map; // JVMTI: used during heap iteration + NOT_PRODUCT(int _verify_count;) // to avoid redundant verifies + // Method array. Array<Method*>* _methods; // Interface (Klass*s) this class declares locally to implement. @@ -586,7 +588,7 @@ // symbol unloading support (refcount already added) Symbol* array_name() { return _array_name; } - void set_array_name(Symbol* name) { assert(_array_name == NULL, "name already created"); _array_name = name; } + void set_array_name(Symbol* name) { assert(_array_name == NULL || name == NULL, "name already created"); _array_name = name; } // nonstatic oop-map blocks static int nonstatic_oop_map_size(unsigned int oop_map_count) {