diff src/share/vm/prims/jvmtiEnv.cpp @ 4970:33df1aeaebbf

Merge with http://hg.openjdk.java.net/hsx/hsx24/hotspot/
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Mon, 27 Feb 2012 13:10:13 +0100
parents 4ceaf61479fc
children 0ebca2e35ca5 d2a62e0f25eb
line wrap: on
line diff
--- a/src/share/vm/prims/jvmtiEnv.cpp	Fri Feb 24 18:30:42 2012 -0800
+++ b/src/share/vm/prims/jvmtiEnv.cpp	Mon Feb 27 13:10:13 2012 +0100
@@ -267,7 +267,10 @@
 
     instanceKlassHandle ikh(current_thread, k_oop);
     if (ikh->get_cached_class_file_bytes() == NULL) {
-      // not cached, we need to reconstitute the class file from VM representation
+      // Not cached, we need to reconstitute the class file from the
+      // VM representation. We don't attach the reconstituted class
+      // bytes to the instanceKlass here because they have not been
+      // validated and we're not at a safepoint.
       constantPoolHandle  constants(current_thread, ikh->constants());
       ObjectLocker ol(constants, current_thread);    // lock constant pool while we query it