diff src/share/vm/runtime/jniHandles.hpp @ 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 d2a62e0f25eb
children 63a4eb8bcd23
line wrap: on
line diff
--- a/src/share/vm/runtime/jniHandles.hpp	Fri Aug 31 16:39:35 2012 -0700
+++ b/src/share/vm/runtime/jniHandles.hpp	Sat Sep 01 13:25:18 2012 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -62,23 +62,6 @@
   static jobject make_weak_global(Handle obj);
   static void destroy_weak_global(jobject handle);
 
-  // jmethodID handling (as Weak global handles).
-  // Because the useful life-span of a jmethodID cannot be determined, once created they are
-  // never reclaimed.  The methods to which they refer, however, can be GC'ed away if the class
-  // is unloaded or if the method is made obsolete or deleted -- in these cases, the jmethodID
-  // refers to NULL (as is the case for any weak reference).
-  static jmethodID make_jmethod_id(methodHandle mh);
-  static void destroy_jmethod_id(jmethodID mid);
-  // Use resolve_jmethod_id() in situations where the caller is expected
-  // to provide a valid jmethodID; the only sanity checks are in asserts;
-  // result guaranteed not to be NULL.
-  inline static methodOop resolve_jmethod_id(jmethodID mid);
-  // Use checked_resolve_jmethod_id() in situations where the caller
-  // should provide a valid jmethodID, but might not. NULL is returned
-  // when the jmethodID does not refer to a valid method.
-  inline static methodOop checked_resolve_jmethod_id(jmethodID mid);
-  static void change_method_associated_with_jmethod_id(jmethodID jmid, methodHandle mh);
-
   // Sentinel marking deleted handles in block. Note that we cannot store NULL as
   // the sentinel, since clearing weak global JNI refs are done by storing NULL in
   // the handle. The handle may not be reused before destroy_weak_global is called.
@@ -207,20 +190,6 @@
   return result;
 };
 
-inline methodOop JNIHandles::resolve_jmethod_id(jmethodID mid) {
-  return (methodOop) resolve_non_null((jobject)mid);
-};
-
-inline methodOop JNIHandles::checked_resolve_jmethod_id(jmethodID mid) {
-  oop o = resolve_external_guard((jobject) mid);
-  if (o == NULL || !o->is_method()) {
-    return (methodOop) NULL;
-  }
-
-  return (methodOop) o;
-};
-
-
 inline void JNIHandles::destroy_local(jobject handle) {
   if (handle != NULL) {
     *((oop*)handle) = deleted_handle(); // Mark the handle as deleted, allocate will reuse it