Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/HSDB.java @ 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 | 5bba3366a9a2 |
comparison
equal
deleted
inserted
replaced
110:a49a647afe9a | 113:ba764ed4b6f2 |
---|---|
1009 public void visitAddress(Address addr) { | 1009 public void visitAddress(Address addr) { |
1010 if (Assert.ASSERTS_ENABLED) { | 1010 if (Assert.ASSERTS_ENABLED) { |
1011 Assert.that(addr.andWithMask(VM.getVM().getAddressSize() - 1) == null, | 1011 Assert.that(addr.andWithMask(VM.getVM().getAddressSize() - 1) == null, |
1012 "Address " + addr + "should have been aligned"); | 1012 "Address " + addr + "should have been aligned"); |
1013 } | 1013 } |
1014 OopHandle handle = addr.getOopHandleAt(0); | |
1015 addAnnotation(addr, handle); | |
1016 } | |
1017 | |
1018 public void visitCompOopAddress(Address addr) { | |
1019 if (Assert.ASSERTS_ENABLED) { | |
1020 Assert.that(addr.andWithMask(VM.getVM().getAddressSize() - 1) == null, | |
1021 "Address " + addr + "should have been aligned"); | |
1022 } | |
1023 OopHandle handle = addr.getCompOopHandleAt(0); | |
1024 addAnnotation(addr, handle); | |
1025 } | |
1026 | |
1027 public void addAnnotation(Address addr, OopHandle handle) { | |
1014 // Check contents | 1028 // Check contents |
1015 OopHandle handle = addr.getOopHandleAt(0); | |
1016 String anno = "null oop"; | 1029 String anno = "null oop"; |
1017 if (handle != null) { | 1030 if (handle != null) { |
1018 // Find location | 1031 // Find location |
1019 CollectedHeap collHeap = VM.getVM().getUniverse().heap(); | 1032 CollectedHeap collHeap = VM.getVM().getUniverse().heap(); |
1020 boolean bad = true; | 1033 boolean bad = true; |