Mercurial > hg > truffle
comparison src/share/vm/shark/sharkCacheDecache.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 | f95d63e2154a |
children | e522a00b91aa 2cd5e15048e6 |
comparison
equal
deleted
inserted
replaced
6724:36d1d483d5d6 | 6725:da91efe96a93 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright 2008, 2009 Red Hat, Inc. | 3 * Copyright 2008, 2009 Red Hat, Inc. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * | 5 * |
6 * This code is free software; you can redistribute it and/or modify it | 6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as | 7 * under the terms of the GNU General Public License version 2 only, as |
105 } | 105 } |
106 | 106 |
107 void SharkDecacher::process_method_slot(Value** value, int offset) { | 107 void SharkDecacher::process_method_slot(Value** value, int offset) { |
108 // Decache the method pointer | 108 // Decache the method pointer |
109 write_value_to_frame( | 109 write_value_to_frame( |
110 SharkType::methodOop_type(), | 110 SharkType::Method*_type(), |
111 *value, | 111 *value, |
112 offset); | 112 offset); |
113 | 113 |
114 oopmap()->set_oop(slot2reg(offset)); | 114 oopmap()->set_oop(slot2reg(offset)); |
115 } | 115 } |
203 *value = read_value_from_frame(SharkType::oop_type(), offset); | 203 *value = read_value_from_frame(SharkType::oop_type(), offset); |
204 } | 204 } |
205 | 205 |
206 void SharkCacher::process_method_slot(Value** value, int offset) { | 206 void SharkCacher::process_method_slot(Value** value, int offset) { |
207 // Cache the method pointer | 207 // Cache the method pointer |
208 *value = read_value_from_frame(SharkType::methodOop_type(), offset); | 208 *value = read_value_from_frame(SharkType::Method*_type(), offset); |
209 } | 209 } |
210 | 210 |
211 void SharkFunctionEntryCacher::process_method_slot(Value** value, int offset) { | 211 void SharkFunctionEntryCacher::process_method_slot(Value** value, int offset) { |
212 // "Cache" the method pointer | 212 // "Cache" the method pointer |
213 *value = method(); | 213 *value = method(); |