540 541 /* 542 * Retrieve the assertion directives for the specified class. 543 */ 544 JNIEXPORT jboolean JNICALL 545 JVM_DesiredAssertionStatus(JNIEnv *env, jclass unused, jclass cls); 546 547 /* 548 * Retrieve the assertion directives from the VM. 549 */ 550 JNIEXPORT jobject JNICALL 551 JVM_AssertionStatusDirectives(JNIEnv *env, jclass unused); 552 553 /* 554 * java.util.concurrent.atomic.AtomicLong 555 */ 556 JNIEXPORT jboolean JNICALL 557 JVM_SupportsCX8(void); 558 559 /* 560 * com.sun.dtrace.jsdt support 561 */ 562 563 #define JVM_TRACING_DTRACE_VERSION 1 564 565 /* 566 * Structure to pass one probe description to JVM 567 */ 568 typedef struct { 569 jmethodID method; 570 jstring function; 571 jstring name; 572 void* reserved[4]; // for future use 573 } JVM_DTraceProbe; 574 575 /** 576 * Encapsulates the stability ratings for a DTrace provider field 577 */ 578 typedef struct { 579 jint nameStability; | 540 541 /* 542 * Retrieve the assertion directives for the specified class. 543 */ 544 JNIEXPORT jboolean JNICALL 545 JVM_DesiredAssertionStatus(JNIEnv *env, jclass unused, jclass cls); 546 547 /* 548 * Retrieve the assertion directives from the VM. 549 */ 550 JNIEXPORT jobject JNICALL 551 JVM_AssertionStatusDirectives(JNIEnv *env, jclass unused); 552 553 /* 554 * java.util.concurrent.atomic.AtomicLong 555 */ 556 JNIEXPORT jboolean JNICALL 557 JVM_SupportsCX8(void); 558 559 /* 560 * jdk.internal.jimage 561 */ 562 563 JNIEXPORT jlong JNICALL 564 JVM_ImageOpen(JNIEnv *env, const char *nativePath, jboolean big_endian); 565 566 JNIEXPORT void JNICALL 567 JVM_ImageClose(JNIEnv *env, jlong id); 568 569 JNIEXPORT jlong JNICALL 570 JVM_ImageGetIndexAddress(JNIEnv *env, jlong id); 571 572 JNIEXPORT jlong JNICALL 573 JVM_ImageGetDataAddress(JNIEnv *env,jlong id); 574 575 JNIEXPORT jboolean JNICALL 576 JVM_ImageRead(JNIEnv *env, jlong id, jlong offset, 577 unsigned char* uncompressedAddress, jlong uncompressed_size); 578 579 JNIEXPORT jboolean JNICALL 580 JVM_ImageReadCompressed(JNIEnv *env, jlong id, jlong offset, 581 unsigned char* compressedBuffer, jlong compressed_size, 582 unsigned char* uncompressedBuffer, jlong uncompressed_size); 583 584 JNIEXPORT const char* JNICALL 585 JVM_ImageGetStringBytes(JNIEnv *env, jlong id, jint offset); 586 587 JNIEXPORT jlong* JNICALL 588 JVM_ImageGetAttributes(JNIEnv *env, jlong* rawAttributes, jlong id, jint offset); 589 590 JNIEXPORT jsize JNICALL 591 JVM_ImageGetAttributesCount(JNIEnv *env); 592 593 JNIEXPORT jlong* JNICALL 594 JVM_ImageFindAttributes(JNIEnv *env, jlong* rawAttributes, jbyte* rawBytes, jsize size, jlong id); 595 596 JNIEXPORT jint* JNICALL 597 JVM_ImageAttributeOffsets(JNIEnv *env, jint* rawOffsets, unsigned int length, jlong id); 598 599 JNIEXPORT unsigned int JNICALL 600 JVM_ImageAttributeOffsetsLength(JNIEnv *env, jlong id); 601 /* 602 * com.sun.dtrace.jsdt support 603 */ 604 605 #define JVM_TRACING_DTRACE_VERSION 1 606 607 /* 608 * Structure to pass one probe description to JVM 609 */ 610 typedef struct { 611 jmethodID method; 612 jstring function; 613 jstring name; 614 void* reserved[4]; // for future use 615 } JVM_DTraceProbe; 616 617 /** 618 * Encapsulates the stability ratings for a DTrace provider field 619 */ 620 typedef struct { 621 jint nameStability; |