Mercurial > hg > graal-jvmci-8
diff src/share/vm/shark/sharkTopLevelBlock.cpp @ 6725:da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author | coleenp |
---|---|
date | Sat, 01 Sep 2012 13:25:18 -0400 |
parents | 069ab3f976d3 |
children | 2cd5e15048e6 |
line wrap: on
line diff
--- a/src/share/vm/shark/sharkTopLevelBlock.cpp Fri Aug 31 16:39:35 2012 -0700 +++ b/src/share/vm/shark/sharkTopLevelBlock.cpp Sat Sep 01 13:25:18 2012 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright 2008, 2009, 2010 Red Hat, Inc. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -1103,7 +1103,7 @@ Value *SharkTopLevelBlock::get_direct_callee(ciMethod* method) { return builder()->CreateBitCast( builder()->CreateInlineOop(method), - SharkType::methodOop_type(), + SharkType::Method*_type(), "callee"); } @@ -1118,9 +1118,9 @@ return builder()->CreateLoad( builder()->CreateArrayAddress( klass, - SharkType::methodOop_type(), + SharkType::Method*_type(), vtableEntry::size() * wordSize, - in_ByteSize(instanceKlass::vtable_start_offset() * wordSize), + in_ByteSize(InstanceKlass::vtable_start_offset() * wordSize), LLVMValue::intptr_constant(vtable_index)), "callee"); } @@ -1142,12 +1142,12 @@ Value *vtable_start = builder()->CreateAdd( builder()->CreatePtrToInt(object_klass, SharkType::intptr_type()), LLVMValue::intptr_constant( - instanceKlass::vtable_start_offset() * HeapWordSize), + InstanceKlass::vtable_start_offset() * HeapWordSize), "vtable_start"); Value *vtable_length = builder()->CreateValueOfStructEntry( object_klass, - in_ByteSize(instanceKlass::vtable_length_offset() * HeapWordSize), + in_ByteSize(InstanceKlass::vtable_length_offset() * HeapWordSize), SharkType::jint_type(), "vtable_length"); vtable_length = @@ -1231,7 +1231,7 @@ method->itable_index() * itableMethodEntry::size() * wordSize)), LLVMValue::intptr_constant( itableMethodEntry::method_offset_in_bytes())), - PointerType::getUnqual(SharkType::methodOop_type())), + PointerType::getUnqual(SharkType::Method*_type())), "callee"); } @@ -1312,7 +1312,7 @@ // Load the SharkEntry from the callee Value *base_pc = builder()->CreateValueOfStructEntry( - callee, methodOopDesc::from_interpreted_offset(), + callee, Method::from_interpreted_offset(), SharkType::intptr_type(), "base_pc");