401 template(notifyJvmtiUnmount_name, "notifyJvmtiUnmount") \
402 template(notifyJvmtiHideFrames_name, "notifyJvmtiHideFrames") \
403 template(notifyJvmtiDisableSuspend_name, "notifyJvmtiDisableSuspend") \
404 template(doYield_name, "doYield") \
405 template(enter_name, "enter") \
406 template(enterSpecial_name, "enterSpecial") \
407 template(onContinue_name, "onContinue0") \
408 template(scope_name, "scope") \
409 template(yieldInfo_name, "yieldInfo") \
410 template(pin_name, "pin") \
411 template(unpin_name, "unpin") \
412 template(tail_name, "tail") \
413 template(size_name, "size") \
414 template(bottom_name, "bottom") \
415 template(mode_name, "mode") \
416 template(numFrames_name, "numFrames") \
417 template(stack_name, "stack") \
418 template(maxSize_name, "maxSize") \
419 template(reset_name, "reset") \
420 template(done_name, "done") \
421 template(mounted_name, "mounted") \
422 template(jfrTraceId_name, "jfrTraceId") \
423 template(fp_name, "fp") \
424 template(sp_name, "sp") \
425 template(pc_name, "pc") \
426 template(cs_name, "cs") \
427 template(get_name, "get") \
428 template(refersTo0_name, "refersTo0") \
429 template(put_name, "put") \
430 template(type_name, "type") \
431 template(findNative_name, "findNative") \
432 template(getFromClass_name, "getFromClass") \
433 template(dispatch_name, "dispatch") \
434 template(bootLoader_name, "bootLoader") \
435 template(getPlatformClassLoader_name, "getPlatformClassLoader") \
436 template(getSystemClassLoader_name, "getSystemClassLoader") \
437 template(fillInStackTrace_name, "fillInStackTrace") \
438 template(getCause_name, "getCause") \
439 template(initCause_name, "initCause") \
440 template(getProperty_name, "getProperty") \
500 template(java_lang_Character_array_signature, "[Ljava/lang/Character;") \
501 template(java_lang_Short_array_signature, "[Ljava/lang/Short;") \
502 template(java_lang_Byte_array_signature, "[Ljava/lang/Byte;") \
503 template(java_lang_Boolean_signature, "Ljava/lang/Boolean;") \
504 template(url_code_signer_array_void_signature, "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
505 template(jvmti_thread_state_name, "jvmti_thread_state") \
506 template(jvmti_VTMS_transition_disable_count_name, "jvmti_VTMS_transition_disable_count") \
507 template(jvmti_is_in_VTMS_transition_name, "jvmti_is_in_VTMS_transition") \
508 template(module_entry_name, "module_entry") \
509 template(resolved_references_name, "<resolved_references>") \
510 template(init_lock_name, "<init_lock>") \
511 template(address_size_name, "ADDRESS_SIZE0") \
512 template(page_size_name, "PAGE_SIZE") \
513 template(big_endian_name, "BIG_ENDIAN") \
514 template(use_unaligned_access_name, "UNALIGNED_ACCESS") \
515 template(data_cache_line_flush_size_name, "DATA_CACHE_LINE_FLUSH_SIZE") \
516 template(during_unsafe_access_name, "during_unsafe_access") \
517 template(checkIndex_name, "checkIndex") \
518 template(jfr_epoch_name, "jfr_epoch") \
519 template(maxThawingSize_name, "maxThawingSize") \
520 \
521 /* name symbols needed by intrinsics */ \
522 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
523 \
524 /* common signatures names */ \
525 template(void_method_signature, "()V") \
526 template(void_boolean_signature, "()Z") \
527 template(void_byte_signature, "()B") \
528 template(void_char_signature, "()C") \
529 template(void_short_signature, "()S") \
530 template(void_int_signature, "()I") \
531 template(void_long_signature, "()J") \
532 template(void_float_signature, "()F") \
533 template(void_double_signature, "()D") \
534 template(bool_void_signature, "(Z)V") \
535 template(int_void_signature, "(I)V") \
536 template(int_int_signature, "(I)I") \
537 template(char_char_signature, "(C)C") \
538 template(short_short_signature, "(S)S") \
539 template(int_bool_signature, "(I)Z") \
548 template(long_long_signature, "(J)J") \
549 template(long_double_signature, "(J)D") \
550 template(long_void_signature, "(J)V") \
551 template(byte_signature, "B") \
552 template(char_signature, "C") \
553 template(double_signature, "D") \
554 template(float_signature, "F") \
555 template(int_signature, "I") \
556 template(long_signature, "J") \
557 template(short_signature, "S") \
558 template(bool_signature, "Z") \
559 template(void_signature, "V") \
560 template(bool_array_signature, "[Z") \
561 template(byte_array_signature, "[B") \
562 template(char_array_signature, "[C") \
563 template(int_array_signature, "[I") \
564 template(runnable_signature, "Ljava/lang/Runnable;") \
565 template(continuation_signature, "Ljdk/internal/vm/Continuation;") \
566 template(continuationscope_signature, "Ljdk/internal/vm/ContinuationScope;") \
567 template(stackchunk_signature, "Ljdk/internal/vm/StackChunk;") \
568 template(object_void_signature, "(Ljava/lang/Object;)V") \
569 template(object_int_signature, "(Ljava/lang/Object;)I") \
570 template(long_object_long_signature, "(JLjava/lang/Object;)J") \
571 template(object_boolean_signature, "(Ljava/lang/Object;)Z") \
572 template(object_object_signature, "(Ljava/lang/Object;)Ljava/lang/Object;") \
573 template(string_void_signature, "(Ljava/lang/String;)V") \
574 template(string_bool_byte_array_signature, "(Ljava/lang/String;Z)[B") \
575 template(throwable_signature, "Ljava/lang/Throwable;") \
576 template(throwable_void_signature, "(Ljava/lang/Throwable;)V") \
577 template(void_throwable_signature, "()Ljava/lang/Throwable;") \
578 template(class_void_signature, "(Ljava/lang/Class;)V") \
579 template(class_int_signature, "(Ljava/lang/Class;)I") \
580 template(class_long_signature, "(Ljava/lang/Class;)J") \
581 template(class_boolean_signature, "(Ljava/lang/Class;)Z") \
582 template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \
583 template(thread_void_signature, "(Ljava/lang/Thread;)V") \
584 template(runnable_void_signature, "(Ljava/lang/Runnable;)V") \
585 template(threadgroup_runnable_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V") \
586 template(threadgroup_string_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V") \
587 template(void_threadgroup_array_signature, "()[Ljava/lang/ThreadGroup;") \
726 JFR_TEMPLATES(template) \
727 \
728 /* CDS */ \
729 template(dumpSharedArchive, "dumpSharedArchive") \
730 template(dumpSharedArchive_signature, "(ZLjava/lang/String;)Ljava/lang/String;") \
731 template(generateLambdaFormHolderClasses, "generateLambdaFormHolderClasses") \
732 template(generateLambdaFormHolderClasses_signature, "([Ljava/lang/String;)[Ljava/lang/Object;") \
733 template(java_lang_Enum, "java/lang/Enum") \
734 template(java_lang_invoke_Invokers_Holder, "java/lang/invoke/Invokers$Holder") \
735 template(java_lang_invoke_DirectMethodHandle_Holder, "java/lang/invoke/DirectMethodHandle$Holder") \
736 template(java_lang_invoke_LambdaForm_Holder, "java/lang/invoke/LambdaForm$Holder") \
737 template(java_lang_invoke_DelegatingMethodHandle_Holder, "java/lang/invoke/DelegatingMethodHandle$Holder") \
738 template(jdk_internal_loader_ClassLoaders, "jdk/internal/loader/ClassLoaders") \
739 template(jdk_internal_misc_CDS, "jdk/internal/misc/CDS") \
740 template(java_util_concurrent_ConcurrentHashMap, "java/util/concurrent/ConcurrentHashMap") \
741 template(java_util_ArrayList, "java/util/ArrayList") \
742 template(toFileURL_name, "toFileURL") \
743 template(toFileURL_signature, "(Ljava/lang/String;)Ljava/net/URL;") \
744 template(url_array_classloader_void_signature, "([Ljava/net/URL;Ljava/lang/ClassLoader;)V") \
745 \
746 /* Thread.dump_to_file jcmd */ \
747 template(jdk_internal_vm_ThreadDumper, "jdk/internal/vm/ThreadDumper") \
748 template(dumpThreads_name, "dumpThreads") \
749 template(dumpThreadsToJson_name, "dumpThreadsToJson") \
750
751 /*end*/
752
753 // enum for figuring positions and size of Symbol::_vm_symbols[]
754 enum class vmSymbolID : int {
755 // [FIRST_SID ... LAST_SID] is the iteration range for the *valid* symbols.
756 // NO_SID is used to indicate an invalid symbol. Some implementation code
757 // *may* read _vm_symbols[NO_SID], so it must be a valid array index.
758 NO_SID = 0, // exclusive lower limit
759
760 #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME_(name),
761 VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
762 #undef VM_SYMBOL_ENUM
763
764 SID_LIMIT, // exclusive upper limit
765
766 #define VM_ALIAS_ENUM(name, def) VM_SYMBOL_ENUM_NAME_(name) = VM_SYMBOL_ENUM_NAME_(def),
767 VM_SYMBOLS_DO(VM_SYMBOL_IGNORE, VM_ALIAS_ENUM)
768 #undef VM_ALIAS_ENUM
769
|
401 template(notifyJvmtiUnmount_name, "notifyJvmtiUnmount") \
402 template(notifyJvmtiHideFrames_name, "notifyJvmtiHideFrames") \
403 template(notifyJvmtiDisableSuspend_name, "notifyJvmtiDisableSuspend") \
404 template(doYield_name, "doYield") \
405 template(enter_name, "enter") \
406 template(enterSpecial_name, "enterSpecial") \
407 template(onContinue_name, "onContinue0") \
408 template(scope_name, "scope") \
409 template(yieldInfo_name, "yieldInfo") \
410 template(pin_name, "pin") \
411 template(unpin_name, "unpin") \
412 template(tail_name, "tail") \
413 template(size_name, "size") \
414 template(bottom_name, "bottom") \
415 template(mode_name, "mode") \
416 template(numFrames_name, "numFrames") \
417 template(stack_name, "stack") \
418 template(maxSize_name, "maxSize") \
419 template(reset_name, "reset") \
420 template(done_name, "done") \
421 template(preempted_name, "preempted") \
422 template(mounted_name, "mounted") \
423 template(jfrTraceId_name, "jfrTraceId") \
424 template(fp_name, "fp") \
425 template(sp_name, "sp") \
426 template(pc_name, "pc") \
427 template(cs_name, "cs") \
428 template(get_name, "get") \
429 template(refersTo0_name, "refersTo0") \
430 template(put_name, "put") \
431 template(type_name, "type") \
432 template(findNative_name, "findNative") \
433 template(getFromClass_name, "getFromClass") \
434 template(dispatch_name, "dispatch") \
435 template(bootLoader_name, "bootLoader") \
436 template(getPlatformClassLoader_name, "getPlatformClassLoader") \
437 template(getSystemClassLoader_name, "getSystemClassLoader") \
438 template(fillInStackTrace_name, "fillInStackTrace") \
439 template(getCause_name, "getCause") \
440 template(initCause_name, "initCause") \
441 template(getProperty_name, "getProperty") \
501 template(java_lang_Character_array_signature, "[Ljava/lang/Character;") \
502 template(java_lang_Short_array_signature, "[Ljava/lang/Short;") \
503 template(java_lang_Byte_array_signature, "[Ljava/lang/Byte;") \
504 template(java_lang_Boolean_signature, "Ljava/lang/Boolean;") \
505 template(url_code_signer_array_void_signature, "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
506 template(jvmti_thread_state_name, "jvmti_thread_state") \
507 template(jvmti_VTMS_transition_disable_count_name, "jvmti_VTMS_transition_disable_count") \
508 template(jvmti_is_in_VTMS_transition_name, "jvmti_is_in_VTMS_transition") \
509 template(module_entry_name, "module_entry") \
510 template(resolved_references_name, "<resolved_references>") \
511 template(init_lock_name, "<init_lock>") \
512 template(address_size_name, "ADDRESS_SIZE0") \
513 template(page_size_name, "PAGE_SIZE") \
514 template(big_endian_name, "BIG_ENDIAN") \
515 template(use_unaligned_access_name, "UNALIGNED_ACCESS") \
516 template(data_cache_line_flush_size_name, "DATA_CACHE_LINE_FLUSH_SIZE") \
517 template(during_unsafe_access_name, "during_unsafe_access") \
518 template(checkIndex_name, "checkIndex") \
519 template(jfr_epoch_name, "jfr_epoch") \
520 template(maxThawingSize_name, "maxThawingSize") \
521 template(lockStackSize_name, "lockStackSize") \
522 template(objectWaiter_name, "objectWaiter") \
523 \
524 /* name symbols needed by intrinsics */ \
525 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
526 \
527 /* common signatures names */ \
528 template(void_method_signature, "()V") \
529 template(void_boolean_signature, "()Z") \
530 template(void_byte_signature, "()B") \
531 template(void_char_signature, "()C") \
532 template(void_short_signature, "()S") \
533 template(void_int_signature, "()I") \
534 template(void_long_signature, "()J") \
535 template(void_float_signature, "()F") \
536 template(void_double_signature, "()D") \
537 template(bool_void_signature, "(Z)V") \
538 template(int_void_signature, "(I)V") \
539 template(int_int_signature, "(I)I") \
540 template(char_char_signature, "(C)C") \
541 template(short_short_signature, "(S)S") \
542 template(int_bool_signature, "(I)Z") \
551 template(long_long_signature, "(J)J") \
552 template(long_double_signature, "(J)D") \
553 template(long_void_signature, "(J)V") \
554 template(byte_signature, "B") \
555 template(char_signature, "C") \
556 template(double_signature, "D") \
557 template(float_signature, "F") \
558 template(int_signature, "I") \
559 template(long_signature, "J") \
560 template(short_signature, "S") \
561 template(bool_signature, "Z") \
562 template(void_signature, "V") \
563 template(bool_array_signature, "[Z") \
564 template(byte_array_signature, "[B") \
565 template(char_array_signature, "[C") \
566 template(int_array_signature, "[I") \
567 template(runnable_signature, "Ljava/lang/Runnable;") \
568 template(continuation_signature, "Ljdk/internal/vm/Continuation;") \
569 template(continuationscope_signature, "Ljdk/internal/vm/ContinuationScope;") \
570 template(stackchunk_signature, "Ljdk/internal/vm/StackChunk;") \
571 template(vthread_signature, "Ljava/lang/VirtualThread;") \
572 template(object_void_signature, "(Ljava/lang/Object;)V") \
573 template(object_int_signature, "(Ljava/lang/Object;)I") \
574 template(long_object_long_signature, "(JLjava/lang/Object;)J") \
575 template(object_boolean_signature, "(Ljava/lang/Object;)Z") \
576 template(object_object_signature, "(Ljava/lang/Object;)Ljava/lang/Object;") \
577 template(string_void_signature, "(Ljava/lang/String;)V") \
578 template(string_bool_byte_array_signature, "(Ljava/lang/String;Z)[B") \
579 template(throwable_signature, "Ljava/lang/Throwable;") \
580 template(throwable_void_signature, "(Ljava/lang/Throwable;)V") \
581 template(void_throwable_signature, "()Ljava/lang/Throwable;") \
582 template(class_void_signature, "(Ljava/lang/Class;)V") \
583 template(class_int_signature, "(Ljava/lang/Class;)I") \
584 template(class_long_signature, "(Ljava/lang/Class;)J") \
585 template(class_boolean_signature, "(Ljava/lang/Class;)Z") \
586 template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \
587 template(thread_void_signature, "(Ljava/lang/Thread;)V") \
588 template(runnable_void_signature, "(Ljava/lang/Runnable;)V") \
589 template(threadgroup_runnable_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V") \
590 template(threadgroup_string_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V") \
591 template(void_threadgroup_array_signature, "()[Ljava/lang/ThreadGroup;") \
730 JFR_TEMPLATES(template) \
731 \
732 /* CDS */ \
733 template(dumpSharedArchive, "dumpSharedArchive") \
734 template(dumpSharedArchive_signature, "(ZLjava/lang/String;)Ljava/lang/String;") \
735 template(generateLambdaFormHolderClasses, "generateLambdaFormHolderClasses") \
736 template(generateLambdaFormHolderClasses_signature, "([Ljava/lang/String;)[Ljava/lang/Object;") \
737 template(java_lang_Enum, "java/lang/Enum") \
738 template(java_lang_invoke_Invokers_Holder, "java/lang/invoke/Invokers$Holder") \
739 template(java_lang_invoke_DirectMethodHandle_Holder, "java/lang/invoke/DirectMethodHandle$Holder") \
740 template(java_lang_invoke_LambdaForm_Holder, "java/lang/invoke/LambdaForm$Holder") \
741 template(java_lang_invoke_DelegatingMethodHandle_Holder, "java/lang/invoke/DelegatingMethodHandle$Holder") \
742 template(jdk_internal_loader_ClassLoaders, "jdk/internal/loader/ClassLoaders") \
743 template(jdk_internal_misc_CDS, "jdk/internal/misc/CDS") \
744 template(java_util_concurrent_ConcurrentHashMap, "java/util/concurrent/ConcurrentHashMap") \
745 template(java_util_ArrayList, "java/util/ArrayList") \
746 template(toFileURL_name, "toFileURL") \
747 template(toFileURL_signature, "(Ljava/lang/String;)Ljava/net/URL;") \
748 template(url_array_classloader_void_signature, "([Ljava/net/URL;Ljava/lang/ClassLoader;)V") \
749 \
750 /* jcmd Thread.dump_to_file */ \
751 template(jdk_internal_vm_ThreadDumper, "jdk/internal/vm/ThreadDumper") \
752 template(dumpThreads_name, "dumpThreads") \
753 template(dumpThreadsToJson_name, "dumpThreadsToJson") \
754 \
755 /* jcmd Thread.vthread_summary */ \
756 template(jdk_internal_vm_VThreadSummary, "jdk/internal/vm/VThreadSummary") \
757 template(print_name, "print") \
758
759 /*end*/
760
761 // enum for figuring positions and size of Symbol::_vm_symbols[]
762 enum class vmSymbolID : int {
763 // [FIRST_SID ... LAST_SID] is the iteration range for the *valid* symbols.
764 // NO_SID is used to indicate an invalid symbol. Some implementation code
765 // *may* read _vm_symbols[NO_SID], so it must be a valid array index.
766 NO_SID = 0, // exclusive lower limit
767
768 #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME_(name),
769 VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
770 #undef VM_SYMBOL_ENUM
771
772 SID_LIMIT, // exclusive upper limit
773
774 #define VM_ALIAS_ENUM(name, def) VM_SYMBOL_ENUM_NAME_(name) = VM_SYMBOL_ENUM_NAME_(def),
775 VM_SYMBOLS_DO(VM_SYMBOL_IGNORE, VM_ALIAS_ENUM)
776 #undef VM_ALIAS_ENUM
777
|