Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/utilities/soql/JSJavaMethod.java @ 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 | c18cbe5936b8 |
children |
comparison
equal
deleted
inserted
replaced
6724:36d1d483d5d6 | 6725:da91efe96a93 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2004, 2007, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
27 import java.util.*; | 27 import java.util.*; |
28 import sun.jvm.hotspot.oops.*; | 28 import sun.jvm.hotspot.oops.*; |
29 import sun.jvm.hotspot.runtime.*; | 29 import sun.jvm.hotspot.runtime.*; |
30 | 30 |
31 /** | 31 /** |
32 * Wraps a methodOop from the debuggee VM. | 32 * Wraps a Method* from the debuggee VM. |
33 */ | 33 */ |
34 public class JSJavaMethod extends JSJavaObject { | 34 public class JSJavaMethod extends JSMetadata { |
35 private static final int FIELD_NAME = 0; | 35 private static final int FIELD_NAME = 0; |
36 private static final int FIELD_SIGNATURE = 1; | 36 private static final int FIELD_SIGNATURE = 1; |
37 private static final int FIELD_HOLDER = 2; | 37 private static final int FIELD_HOLDER = 2; |
38 private static final int FIELD_IS_PRIVATE = 3; | 38 private static final int FIELD_IS_PRIVATE = 3; |
39 private static final int FIELD_IS_PUBLIC = 4; | 39 private static final int FIELD_IS_PUBLIC = 4; |
52 public JSJavaMethod(Method m, JSJavaFactory fac) { | 52 public JSJavaMethod(Method m, JSJavaFactory fac) { |
53 super(m, fac); | 53 super(m, fac); |
54 } | 54 } |
55 | 55 |
56 public final Method getMethod() { | 56 public final Method getMethod() { |
57 return (Method) getOop(); | 57 return (Method) getMetadata(); |
58 } | 58 } |
59 | 59 |
60 public Object get(String name) { | 60 public Object get(String name) { |
61 int fieldID = getFieldID(name); | 61 int fieldID = getFieldID(name); |
62 Method method = getMethod(); | 62 Method method = getMethod(); |