# HG changeset patch
-# Parent 5befc082356f5775b55f07434c2ad0e498289767
+# Parent 922768e787073779cd5b1dd57bfb615508817c99
-diff -r 5befc082356f src/share/vm/ci/ciObjectFactory.cpp
---- a/src/share/vm/ci/ciObjectFactory.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/ci/ciObjectFactory.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/ci/ciObjectFactory.cpp
+--- a/src/share/vm/ci/ciObjectFactory.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/ci/ciObjectFactory.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -799,3 +799,27 @@
_unloaded_instances->length(),
_unloaded_klasses->length());
+#endif // ASSERT
+}
+
-diff -r 5befc082356f src/share/vm/ci/ciObjectFactory.hpp
---- a/src/share/vm/ci/ciObjectFactory.hpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/ci/ciObjectFactory.hpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/ci/ciObjectFactory.hpp
+--- a/src/share/vm/ci/ciObjectFactory.hpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/ci/ciObjectFactory.hpp Wed Apr 06 12:04:16 2016 -0700
@@ -92,6 +92,7 @@
ciInstance* get_unloaded_instance(ciInstanceKlass* klass);
};
#endif // SHARE_VM_CI_CIOBJECTFACTORY_HPP
-diff -r 5befc082356f src/share/vm/classfile/classFileParser.cpp
---- a/src/share/vm/classfile/classFileParser.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/classfile/classFileParser.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/classfile/classFileParser.cpp
+--- a/src/share/vm/classfile/classFileParser.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/classfile/classFileParser.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -763,6 +763,7 @@
Array<Klass*>* ClassFileParser::parse_interfaces(int length,
Handle protection_domain,
k->set_is_cloneable();
}
}
-diff -r 5befc082356f src/share/vm/classfile/classFileParser.hpp
---- a/src/share/vm/classfile/classFileParser.hpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/classfile/classFileParser.hpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/classfile/classFileParser.hpp
+--- a/src/share/vm/classfile/classFileParser.hpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/classfile/classFileParser.hpp Wed Apr 06 12:04:16 2016 -0700
@@ -219,11 +219,12 @@
Array<Klass*>* parse_interfaces(int length,
Handle protection_domain,
TempNewSymbol& parsed_name,
bool verify,
TRAPS);
-diff -r 5befc082356f src/share/vm/classfile/classLoader.cpp
---- a/src/share/vm/classfile/classLoader.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/classfile/classLoader.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/classfile/classLoader.cpp
+--- a/src/share/vm/classfile/classLoader.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/classfile/classLoader.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -1124,6 +1124,7 @@
instanceKlassHandle result = parser.parseClassFile(h_name,
loader_data,
parsed_name,
context.should_verify(classpath_index),
THREAD);
-diff -r 5befc082356f src/share/vm/classfile/dictionary.cpp
---- a/src/share/vm/classfile/dictionary.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/classfile/dictionary.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/classfile/dictionary.cpp
+--- a/src/share/vm/classfile/dictionary.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/classfile/dictionary.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -145,7 +145,7 @@
InstanceKlass* ik = InstanceKlass::cast(e);
}
-diff -r 5befc082356f src/share/vm/classfile/dictionary.hpp
---- a/src/share/vm/classfile/dictionary.hpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/classfile/dictionary.hpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/classfile/dictionary.hpp
+--- a/src/share/vm/classfile/dictionary.hpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/classfile/dictionary.hpp Wed Apr 06 12:04:16 2016 -0700
@@ -78,6 +78,10 @@
void add_klass(Symbol* class_name, ClassLoaderData* loader_data,KlassHandle obj);
// Unload (that is, break root links to) all unmarked classes and loaders.
void do_unloading();
-diff -r 5befc082356f src/share/vm/classfile/javaClasses.cpp
---- a/src/share/vm/classfile/javaClasses.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/classfile/javaClasses.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/classfile/javaClasses.cpp
+--- a/src/share/vm/classfile/javaClasses.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/classfile/javaClasses.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -1712,6 +1712,8 @@
skip_throwableInit_check = true;
}
if (method->is_hidden()) {
if (skip_hidden) continue;
}
-diff -r 5befc082356f src/share/vm/classfile/loaderConstraints.cpp
---- a/src/share/vm/classfile/loaderConstraints.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/classfile/loaderConstraints.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/classfile/loaderConstraints.cpp
+--- a/src/share/vm/classfile/loaderConstraints.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/classfile/loaderConstraints.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -98,6 +98,19 @@
return pp;
}
} else {
// If we don't find the class in the system dictionary, it
// has to be in the placeholders table.
-diff -r 5befc082356f src/share/vm/classfile/loaderConstraints.hpp
---- a/src/share/vm/classfile/loaderConstraints.hpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/classfile/loaderConstraints.hpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/classfile/loaderConstraints.hpp
+--- a/src/share/vm/classfile/loaderConstraints.hpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/classfile/loaderConstraints.hpp Wed Apr 06 12:04:16 2016 -0700
@@ -64,6 +64,9 @@
// Enhanced Class Redefinition support
void classes_do(KlassClosure* f);
// Check class loader constraints
bool add_entry(Symbol* name, Klass* klass1, Handle loader1,
Klass* klass2, Handle loader2);
-diff -r 5befc082356f src/share/vm/classfile/systemDictionary.cpp
---- a/src/share/vm/classfile/systemDictionary.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/classfile/systemDictionary.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/classfile/systemDictionary.cpp
+--- a/src/share/vm/classfile/systemDictionary.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/classfile/systemDictionary.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -182,6 +182,7 @@
// can return a null klass
klass = handle_resolution_exception(class_name, class_loader, protection_domain, throw_error, k_h, THREAD);
linkage_error = "loader (instance of %s): attempted duplicate class "
"definition for name: \"%s\"";
} else {
-diff -r 5befc082356f src/share/vm/classfile/systemDictionary.hpp
---- a/src/share/vm/classfile/systemDictionary.hpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/classfile/systemDictionary.hpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/classfile/systemDictionary.hpp
+--- a/src/share/vm/classfile/systemDictionary.hpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/classfile/systemDictionary.hpp Wed Apr 06 12:04:16 2016 -0700
@@ -284,7 +284,7 @@
// Resolve from stream (called by jni_DefineClass and JVM_DefineClass)
static Klass* resolve_from_stream(Symbol* class_name, Handle class_loader,
static instanceKlassHandle find_or_define_instance_class(Symbol* class_name,
Handle class_loader,
instanceKlassHandle k, TRAPS);
-diff -r 5befc082356f src/share/vm/classfile/verifier.cpp
---- a/src/share/vm/classfile/verifier.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/classfile/verifier.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/classfile/verifier.cpp
+--- a/src/share/vm/classfile/verifier.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/classfile/verifier.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -189,7 +189,7 @@
Symbol* name = klass->name();
Klass* refl_magic_klass = SystemDictionary::reflect_MagicAccessorImpl_klass();
int num_methods = methods->length();
for (int index = 0; index < num_methods; index++) {
-diff -r 5befc082356f src/share/vm/classfile/verifier.hpp
---- a/src/share/vm/classfile/verifier.hpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/classfile/verifier.hpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/classfile/verifier.hpp
+--- a/src/share/vm/classfile/verifier.hpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/classfile/verifier.hpp Wed Apr 06 12:04:16 2016 -0700
@@ -344,6 +344,7 @@
VerificationType object_type() const;
instanceKlassHandle _klass; // the class being verified
methodHandle _method; // current method being verified
VerificationType _this_type; // the verification type of the current class
-diff -r 5befc082356f src/share/vm/interpreter/linkResolver.cpp
---- a/src/share/vm/interpreter/linkResolver.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/interpreter/linkResolver.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/interpreter/linkResolver.cpp
+--- a/src/share/vm/interpreter/linkResolver.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/interpreter/linkResolver.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -215,8 +215,8 @@
// Klass resolution
selected_method = methodHandle(THREAD, inst->method_at_vtable(vtable_index));
}
}
-diff -r 5befc082356f src/share/vm/memory/universe.cpp
---- a/src/share/vm/memory/universe.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/memory/universe.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/memory/universe.cpp
+--- a/src/share/vm/memory/universe.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/memory/universe.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -168,6 +168,43 @@
f(doubleArrayKlassObj());
}
void Universe::oops_do(OopClosure* f, bool do_all) {
f->do_oop((oop*) &_int_mirror);
-diff -r 5befc082356f src/share/vm/memory/universe.hpp
---- a/src/share/vm/memory/universe.hpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/memory/universe.hpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/memory/universe.hpp
+--- a/src/share/vm/memory/universe.hpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/memory/universe.hpp Wed Apr 06 12:04:16 2016 -0700
@@ -415,6 +415,7 @@
static void run_finalizers_on_exit();
// Apply "f" to the addresses of all the direct heap pointers maintained
// as static fields of "Universe".
-diff -r 5befc082356f src/share/vm/oops/cpCache.cpp
---- a/src/share/vm/oops/cpCache.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/oops/cpCache.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/oops/cpCache.cpp
+--- a/src/share/vm/oops/cpCache.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/oops/cpCache.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -338,7 +338,8 @@
if (has_appendix) {
const int appendix_index = f2_as_index() + _indy_resolved_references_appendix_offset;
#endif // INCLUDE_JVMTI
-diff -r 5befc082356f src/share/vm/oops/cpCache.hpp
---- a/src/share/vm/oops/cpCache.hpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/oops/cpCache.hpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/oops/cpCache.hpp
+--- a/src/share/vm/oops/cpCache.hpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/oops/cpCache.hpp Wed Apr 06 12:04:16 2016 -0700
@@ -178,6 +178,8 @@
tos_state_bits = 4,
tos_state_mask = right_n_bits(tos_state_bits),
#endif // INCLUDE_JVMTI
// Deallocate - no fields to deallocate
-diff -r 5befc082356f src/share/vm/oops/instanceKlass.cpp
---- a/src/share/vm/oops/instanceKlass.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/oops/instanceKlass.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/oops/instanceKlass.cpp
+--- a/src/share/vm/oops/instanceKlass.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/oops/instanceKlass.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -729,7 +729,8 @@
}
#endif
} // end has_previous_version()
-diff -r 5befc082356f src/share/vm/oops/instanceKlass.hpp
---- a/src/share/vm/oops/instanceKlass.hpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/oops/instanceKlass.hpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/oops/instanceKlass.hpp
+--- a/src/share/vm/oops/instanceKlass.hpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/oops/instanceKlass.hpp Wed Apr 06 12:04:16 2016 -0700
@@ -139,6 +139,7 @@
friend class VMStructs;
friend class ClassFileParser;
void methods_do(void f(Method* method));
void array_klasses_do(void f(Klass* k));
void array_klasses_do(void f(Klass* k, TRAPS), TRAPS);
-diff -r 5befc082356f src/share/vm/oops/klass.cpp
---- a/src/share/vm/oops/klass.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/oops/klass.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/oops/klass.cpp
+--- a/src/share/vm/oops/klass.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/oops/klass.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -186,6 +186,13 @@
set_next_link(NULL);
TRACE_INIT_ID(this);
bool Klass::is_loader_alive(BoolObjectClosure* is_alive) {
#ifdef ASSERT
// The class is alive iff the class loader is alive.
-diff -r 5befc082356f src/share/vm/oops/klass.hpp
---- a/src/share/vm/oops/klass.hpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/oops/klass.hpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/oops/klass.hpp
+--- a/src/share/vm/oops/klass.hpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/oops/klass.hpp Wed Apr 06 12:04:16 2016 -0700
@@ -149,6 +149,10 @@
oop _java_mirror;
// Superclass
// Compiler support
static ByteSize super_offset() { return in_ByteSize(offset_of(Klass, _super)); }
-diff -r 5befc082356f src/share/vm/oops/klassVtable.cpp
---- a/src/share/vm/oops/klassVtable.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/oops/klassVtable.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/oops/klassVtable.cpp
+--- a/src/share/vm/oops/klassVtable.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/oops/klassVtable.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -1450,6 +1450,8 @@
void klassVtable::verify_against(outputStream* st, klassVtable* vt, int index) {
}
}
-diff -r 5befc082356f src/share/vm/oops/method.cpp
---- a/src/share/vm/oops/method.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/oops/method.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/oops/method.cpp
+--- a/src/share/vm/oops/method.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/oops/method.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -1208,6 +1208,8 @@
// Reset correct method/const method, method size, and parameter info
ClassLoaderData* cld = loader_data;
if (!SafepointSynchronize::is_at_safepoint()) {
-diff -r 5befc082356f src/share/vm/oops/method.hpp
---- a/src/share/vm/oops/method.hpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/oops/method.hpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/oops/method.hpp
+--- a/src/share/vm/oops/method.hpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/oops/method.hpp Wed Apr 06 12:04:16 2016 -0700
@@ -105,6 +105,10 @@
AccessFlags _access_flags; // Access flags
int _vtable_index; // vtable index of this method (see VtableIndexFlag)
// signature
Symbol* signature() const { return constants()->symbol_at(signature_index()); }
int signature_index() const { return constMethod()->signature_index(); }
-diff -r 5befc082356f src/share/vm/prims/jni.cpp
---- a/src/share/vm/prims/jni.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/prims/jni.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/prims/jni.cpp
+--- a/src/share/vm/prims/jni.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/prims/jni.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -399,6 +399,7 @@
}
Klass* k = SystemDictionary::resolve_from_stream(class_name, class_loader,
CHECK_NULL);
if (TraceClassResolution && k != NULL) {
-diff -r 5befc082356f src/share/vm/prims/jvm.cpp
---- a/src/share/vm/prims/jvm.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/prims/jvm.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/prims/jvm.cpp
+--- a/src/share/vm/prims/jvm.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/prims/jvm.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -1029,6 +1029,7 @@
Klass* k = SystemDictionary::resolve_from_stream(class_name, class_loader,
protection_domain, &st,
CHECK_NULL);
if (TraceClassResolution && k != NULL) {
-diff -r 5befc082356f src/share/vm/prims/jvmtiEnv.cpp
---- a/src/share/vm/prims/jvmtiEnv.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/prims/jvmtiEnv.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/prims/jvmtiEnv.cpp
+--- a/src/share/vm/prims/jvmtiEnv.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/prims/jvmtiEnv.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -43,6 +43,7 @@
#include "prims/jvmtiManageCapabilities.hpp"
#include "prims/jvmtiRawMonitor.hpp"
VM_RedefineClasses op(class_count, class_definitions, jvmti_class_load_kind_redefine);
VMThread::execute(&op);
return (op.check_error());
-diff -r 5befc082356f src/share/vm/prims/jvmtiExport.hpp
---- a/src/share/vm/prims/jvmtiExport.hpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/prims/jvmtiExport.hpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/prims/jvmtiExport.hpp
+--- a/src/share/vm/prims/jvmtiExport.hpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/prims/jvmtiExport.hpp Wed Apr 06 12:04:16 2016 -0700
@@ -188,6 +188,7 @@
// systems as needed to relax invariant checks.
static bool _has_redefined_a_class;
inline static void set_has_redefined_a_class() {
JVMTI_ONLY(_has_redefined_a_class = true;)
}
-diff -r 5befc082356f src/share/vm/prims/jvmtiImpl.cpp
---- a/src/share/vm/prims/jvmtiImpl.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/prims/jvmtiImpl.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/prims/jvmtiImpl.cpp
+--- a/src/share/vm/prims/jvmtiImpl.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/prims/jvmtiImpl.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -290,6 +290,11 @@
Symbol* m_name = _method->name();
Symbol* m_signature = _method->signature();
// search previous versions if they exist
PreviousVersionWalker pvw(thread, (InstanceKlass *)ikh());
for (PreviousVersionNode * pv_node = pvw.next_previous_version();
-diff -r 5befc082356f src/share/vm/prims/jvmtiRedefineClasses2.cpp
+diff -r 922768e78707 src/share/vm/prims/jvmtiRedefineClasses2.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
-+++ b/src/share/vm/prims/jvmtiRedefineClasses2.cpp Wed Mar 02 15:00:42 2016 -0800
-@@ -0,0 +1,2111 @@
++++ b/src/share/vm/prims/jvmtiRedefineClasses2.cpp Wed Apr 06 12:04:16 2016 -0700
+@@ -0,0 +1,2112 @@
+/*
+ * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ // Also, set array klasses element klass.
+ cur->set_array_klasses(array_klasses);
+ ObjArrayKlass::cast(array_klasses)->set_element_klass(cur);
++ ArrayKlass::cast(array_klasses)->set_component_mirror(cur->java_mirror());
+ }
+
+ // Initialize the new class! Special static initialization that does not execute the
+ transfer.transfer_registrations(old_klass, _deleted_methods, _deleted_methods_length);
+ transfer.transfer_registrations(old_klass, _matching_old_methods, _matching_methods_length);
+}
-diff -r 5befc082356f src/share/vm/prims/jvmtiRedefineClasses2.hpp
+diff -r 922768e78707 src/share/vm/prims/jvmtiRedefineClasses2.hpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
-+++ b/src/share/vm/prims/jvmtiRedefineClasses2.hpp Wed Mar 02 15:00:42 2016 -0800
++++ b/src/share/vm/prims/jvmtiRedefineClasses2.hpp Wed Apr 06 12:04:16 2016 -0700
@@ -0,0 +1,159 @@
+/*
+ * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
+};
+
+#endif // SHARE_VM_PRIMS_JVMTIENHANCEDREDEFINECLASSES_HPP
-diff -r 5befc082356f src/share/vm/prims/methodHandles.cpp
---- a/src/share/vm/prims/methodHandles.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/prims/methodHandles.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/prims/methodHandles.cpp
+--- a/src/share/vm/prims/methodHandles.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/prims/methodHandles.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -173,7 +173,7 @@
return NULL;
}
return mname();
} else {
// Redefinition caused this to fail. Return NULL (and an exception?)
-diff -r 5befc082356f src/share/vm/prims/methodHandles.hpp
---- a/src/share/vm/prims/methodHandles.hpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/prims/methodHandles.hpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/prims/methodHandles.hpp
+--- a/src/share/vm/prims/methodHandles.hpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/prims/methodHandles.hpp Wed Apr 06 12:04:16 2016 -0700
@@ -60,7 +60,7 @@
static Handle new_MemberName(TRAPS); // must be followed by init_MemberName
static oop init_MemberName(Handle mname_h, Handle target_h); // compute vmtarget/vmindex from target
static int method_ref_kind(Method* m, bool do_dispatch_if_possible = true);
static int find_MemberNames(KlassHandle k, Symbol* name, Symbol* sig,
int mflags, KlassHandle caller,
-diff -r 5befc082356f src/share/vm/runtime/reflection.cpp
---- a/src/share/vm/runtime/reflection.cpp Wed Mar 02 13:33:01 2016 -0800
-+++ b/src/share/vm/runtime/reflection.cpp Wed Mar 02 15:00:42 2016 -0800
+diff -r 922768e78707 src/share/vm/runtime/reflection.cpp
+--- a/src/share/vm/runtime/reflection.cpp Tue Apr 05 11:28:40 2016 -0700
++++ b/src/share/vm/runtime/reflection.cpp Wed Apr 06 12:04:16 2016 -0700
@@ -520,6 +520,12 @@
AccessFlags access,
bool classloader_only,