Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/serialize.cpp @ 2177:3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
Summary: move symbols from permgen into C heap and reference count them
Reviewed-by: never, acorn, jmasa, stefank
author | coleenp |
---|---|
date | Thu, 27 Jan 2011 16:11:27 -0800 |
parents | f95d63e2154a |
children | 1d1603768966 |
comparison
equal
deleted
inserted
replaced
2176:27e4ea99855d | 2177:3582bf76420e |
---|---|
59 soc->do_tag(arrayOopDesc::base_offset_in_bytes(T_BYTE)); | 59 soc->do_tag(arrayOopDesc::base_offset_in_bytes(T_BYTE)); |
60 soc->do_tag(sizeof(constantPoolOopDesc)); | 60 soc->do_tag(sizeof(constantPoolOopDesc)); |
61 soc->do_tag(sizeof(constantPoolCacheOopDesc)); | 61 soc->do_tag(sizeof(constantPoolCacheOopDesc)); |
62 soc->do_tag(objArrayOopDesc::base_offset_in_bytes()); | 62 soc->do_tag(objArrayOopDesc::base_offset_in_bytes()); |
63 soc->do_tag(typeArrayOopDesc::base_offset_in_bytes(T_BYTE)); | 63 soc->do_tag(typeArrayOopDesc::base_offset_in_bytes(T_BYTE)); |
64 soc->do_tag(sizeof(symbolOopDesc)); | 64 soc->do_tag(sizeof(Symbol)); |
65 soc->do_tag(sizeof(klassOopDesc)); | 65 soc->do_tag(sizeof(klassOopDesc)); |
66 soc->do_tag(sizeof(markOopDesc)); | 66 soc->do_tag(sizeof(markOopDesc)); |
67 soc->do_tag(sizeof(compiledICHolderOopDesc)); | 67 soc->do_tag(sizeof(compiledICHolderOopDesc)); |
68 | 68 |
69 // Dump the block offset table entries. | 69 // Dump the block offset table entries. |
81 soc->do_tag(--tag); | 81 soc->do_tag(--tag); |
82 | 82 |
83 // Dump/restore miscellaneous oops. | 83 // Dump/restore miscellaneous oops. |
84 Universe::oops_do(soc, true); | 84 Universe::oops_do(soc, true); |
85 soc->do_tag(--tag); | 85 soc->do_tag(--tag); |
86 CodeCache::oops_do(soc); | |
87 soc->do_tag(--tag); | |
86 | 88 |
87 vmSymbols::oops_do(soc, true); soc->do_tag(--tag); | 89 // Dump/restore references to commonly used names and signatures. |
88 CodeCache::oops_do(soc); soc->do_tag(--tag); | 90 vmSymbols::serialize(soc); |
91 soc->do_tag(--tag); | |
92 | |
89 soc->do_tag(666); | 93 soc->do_tag(666); |
90 } | 94 } |