Mercurial > hg > graal-compiler
comparison src/share/vm/oops/constantPool.cpp @ 10376:a1ebd310d5c1
8014912: Restore PrintSharedSpaces functionality after NPG
Summary: Added dumping of object sizes in CDS archive, sorted by MetaspaceObj::Type
Reviewed-by: coleenp, acorn
author | iklam |
---|---|
date | Tue, 28 May 2013 16:36:19 -0700 |
parents | 51af5fae397d |
children | 836a62f43af9 e0c9a1d29eb4 |
comparison
equal
deleted
inserted
replaced
10353:9ea643afcaaf | 10376:a1ebd310d5c1 |
---|---|
53 // Allocate read-write but may be able to move to read-only at dumping time | 53 // Allocate read-write but may be able to move to read-only at dumping time |
54 // if all the klasses are resolved. The only other field that is writable is | 54 // if all the klasses are resolved. The only other field that is writable is |
55 // the resolved_references array, which is recreated at startup time. | 55 // the resolved_references array, which is recreated at startup time. |
56 // But that could be moved to InstanceKlass (although a pain to access from | 56 // But that could be moved to InstanceKlass (although a pain to access from |
57 // assembly code). Maybe it could be moved to the cpCache which is RW. | 57 // assembly code). Maybe it could be moved to the cpCache which is RW. |
58 return new (loader_data, size, false, THREAD) ConstantPool(tags); | 58 return new (loader_data, size, false, MetaspaceObj::ConstantPoolType, THREAD) ConstantPool(tags); |
59 } | 59 } |
60 | 60 |
61 ConstantPool::ConstantPool(Array<u1>* tags) { | 61 ConstantPool::ConstantPool(Array<u1>* tags) { |
62 set_length(tags->length()); | 62 set_length(tags->length()); |
63 set_tags(NULL); | 63 set_tags(NULL); |