Mercurial > hg > truffle
comparison src/share/vm/memory/serialize.cpp @ 113:ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
Summary: Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv
Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
author | coleenp |
---|---|
date | Sun, 13 Apr 2008 17:43:42 -0400 |
parents | a61af66fc99e |
children | d1605aabd0a1 |
comparison
equal
deleted
inserted
replaced
110:a49a647afe9a | 113:ba764ed4b6f2 |
---|---|
39 | 39 |
40 void CompactingPermGenGen::serialize_oops(SerializeOopClosure* soc) { | 40 void CompactingPermGenGen::serialize_oops(SerializeOopClosure* soc) { |
41 int tag = 0; | 41 int tag = 0; |
42 soc->do_tag(--tag); | 42 soc->do_tag(--tag); |
43 | 43 |
44 assert(!UseCompressedOops, "UseCompressedOops doesn't work with shared archive"); | |
44 // Verify the sizes of various oops in the system. | 45 // Verify the sizes of various oops in the system. |
45 soc->do_tag(sizeof(oopDesc)); | 46 soc->do_tag(sizeof(oopDesc)); |
46 soc->do_tag(sizeof(instanceOopDesc)); | 47 soc->do_tag(sizeof(instanceOopDesc)); |
47 soc->do_tag(sizeof(methodOopDesc)); | 48 soc->do_tag(sizeof(methodOopDesc)); |
48 soc->do_tag(sizeof(constMethodOopDesc)); | 49 soc->do_tag(sizeof(constMethodOopDesc)); |
49 soc->do_tag(sizeof(methodDataOopDesc)); | 50 soc->do_tag(sizeof(methodDataOopDesc)); |
50 soc->do_tag(sizeof(arrayOopDesc)); | 51 soc->do_tag(arrayOopDesc::base_offset_in_bytes(T_BYTE)); |
51 soc->do_tag(sizeof(constantPoolOopDesc)); | 52 soc->do_tag(sizeof(constantPoolOopDesc)); |
52 soc->do_tag(sizeof(constantPoolCacheOopDesc)); | 53 soc->do_tag(sizeof(constantPoolCacheOopDesc)); |
53 soc->do_tag(sizeof(objArrayOopDesc)); | 54 soc->do_tag(objArrayOopDesc::base_offset_in_bytes(T_BYTE)); |
54 soc->do_tag(sizeof(typeArrayOopDesc)); | 55 soc->do_tag(typeArrayOopDesc::base_offset_in_bytes(T_BYTE)); |
55 soc->do_tag(sizeof(symbolOopDesc)); | 56 soc->do_tag(sizeof(symbolOopDesc)); |
56 soc->do_tag(sizeof(klassOopDesc)); | 57 soc->do_tag(sizeof(klassOopDesc)); |
57 soc->do_tag(sizeof(markOopDesc)); | 58 soc->do_tag(sizeof(markOopDesc)); |
58 soc->do_tag(sizeof(compiledICHolderOopDesc)); | 59 soc->do_tag(sizeof(compiledICHolderOopDesc)); |
59 | 60 |