mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 20:44:41 +02:00
6653858: dynamic languages need to be able to load anonymous classes
Low-level privileged sun.misc.Unsafe.defineAnonymousClass Reviewed-by: kvn
This commit is contained in:
parent
015a08b3e8
commit
849e0ffb04
19 changed files with 607 additions and 37 deletions
|
@ -422,6 +422,14 @@ JVM_DefineClassWithSource(JNIEnv *env, const char *name, jobject loader,
|
|||
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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue