Mercurial > hg > truffle
comparison src/share/vm/classfile/systemDictionary.hpp @ 431:a45484ea312d
6653858: dynamic languages need to be able to load anonymous classes
Summary: low-level privileged sun.misc.Unsafe.defineAnonymousClass
Reviewed-by: kvn
author | jrose |
---|---|
date | Wed, 12 Nov 2008 22:33:26 -0800 |
parents | d1605aabd0a1 |
children | c81d2ef51ca3 |
comparison
equal
deleted
inserted
replaced
430:4d20a3aaf1ab | 431:a45484ea312d |
---|---|
226 // class hierarchy, simply parse the stream. Used by JVMTI RedefineClasses. | 226 // class hierarchy, simply parse the stream. Used by JVMTI RedefineClasses. |
227 static klassOop parse_stream(symbolHandle class_name, | 227 static klassOop parse_stream(symbolHandle class_name, |
228 Handle class_loader, | 228 Handle class_loader, |
229 Handle protection_domain, | 229 Handle protection_domain, |
230 ClassFileStream* st, | 230 ClassFileStream* st, |
231 TRAPS) { | |
232 KlassHandle nullHandle; | |
233 return parse_stream(class_name, class_loader, protection_domain, st, nullHandle, NULL, THREAD); | |
234 } | |
235 static klassOop parse_stream(symbolHandle class_name, | |
236 Handle class_loader, | |
237 Handle protection_domain, | |
238 ClassFileStream* st, | |
239 KlassHandle host_klass, | |
240 GrowableArray<Handle>* cp_patches, | |
231 TRAPS); | 241 TRAPS); |
232 | 242 |
233 // Resolve from stream (called by jni_DefineClass and JVM_DefineClass) | 243 // Resolve from stream (called by jni_DefineClass and JVM_DefineClass) |
234 static klassOop resolve_from_stream(symbolHandle class_name, Handle class_loader, Handle protection_domain, ClassFileStream* st, TRAPS); | 244 static klassOop resolve_from_stream(symbolHandle class_name, Handle class_loader, Handle protection_domain, ClassFileStream* st, TRAPS); |
235 | 245 |