Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
430:4d20a3aaf1ab | 431:a45484ea312d |
---|---|
419 /* Define a class with a source (added in JDK1.5) */ | 419 /* Define a class with a source (added in JDK1.5) */ |
420 JNIEXPORT jclass JNICALL | 420 JNIEXPORT jclass JNICALL |
421 JVM_DefineClassWithSource(JNIEnv *env, const char *name, jobject loader, | 421 JVM_DefineClassWithSource(JNIEnv *env, const char *name, jobject loader, |
422 const jbyte *buf, jsize len, jobject pd, | 422 const jbyte *buf, jsize len, jobject pd, |
423 const char *source); | 423 const char *source); |
424 | |
425 /* Define a class with a source (MLVM) */ | |
426 JNIEXPORT jclass JNICALL | |
427 JVM_DefineClassWithCP(JNIEnv *env, const char *name, jobject loader, | |
428 const jbyte *buf, jsize len, jobject pd, | |
429 const char *source, | |
430 // same args as JVM_DefineClassWithSource to this point | |
431 jobjectArray constants); | |
424 | 432 |
425 /* | 433 /* |
426 * Reflection support functions | 434 * Reflection support functions |
427 */ | 435 */ |
428 | 436 |