Mercurial > hg > graal-compiler
diff src/share/vm/prims/jvm.h @ 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 | 9c2ecc2ffb12 |
children | abe076e3636f |
line wrap: on
line diff
--- a/src/share/vm/prims/jvm.h Wed Nov 12 11:01:31 2008 -0800 +++ b/src/share/vm/prims/jvm.h Wed Nov 12 22:33:26 2008 -0800 @@ -422,6 +422,14 @@ const jbyte *buf, jsize len, jobject pd, const char *source); +/* Define a class with a source (MLVM) */ +JNIEXPORT jclass JNICALL +JVM_DefineClassWithCP(JNIEnv *env, const char *name, jobject loader, + const jbyte *buf, jsize len, jobject pd, + const char *source, + // same args as JVM_DefineClassWithSource to this point + jobjectArray constants); + /* * Reflection support functions */