< prev index next >

src/hotspot/share/prims/jvm.cpp

Print this page
@@ -3179,23 +3179,16 @@
    }
  JVM_END
  
  JVM_ENTRY(jobject, JVM_ExtentLocalCache(JNIEnv* env, jclass threadClass))
    oop theCache = thread->extentLocalCache();
-   if (theCache) {
-     arrayOop objs = arrayOop(theCache);
-     assert(objs->length() == ExtentLocalCacheSize * 2, "wrong length");
-   }
    return JNIHandles::make_local(THREAD, theCache);
  JVM_END
  
  JVM_ENTRY(void, JVM_SetExtentLocalCache(JNIEnv* env, jclass threadClass,
                                         jobject theCache))
    arrayOop objs = arrayOop(JNIHandles::resolve(theCache));
-   if (objs != NULL) {
-     assert(objs->length() == ExtentLocalCacheSize * 2, "wrong length");
-   }
    thread->set_extentLocalCache(objs);
  JVM_END
  
  // java.lang.SecurityManager ///////////////////////////////////////////////////////////////////////
  
< prev index next >