|
180 | 180 |
|
181 | 181 | #define VM_STRUCTS(nonstatic_field, \ |
182 | 182 | static_field, \ |
183 | | - static_ptr_volatile_field, \ |
| 183 | + volatile_static_field, \ |
184 | 184 | unchecked_nonstatic_field, \ |
185 | 185 | volatile_nonstatic_field, \ |
186 | 186 | nonproduct_nonstatic_field, \ |
|
194 | 194 | /*************/ \ |
195 | 195 | \ |
196 | 196 | VM_STRUCTS_GC(nonstatic_field, \ |
| 197 | + volatile_static_field, \ |
197 | 198 | volatile_nonstatic_field, \ |
198 | 199 | static_field, \ |
199 | 200 | unchecked_nonstatic_field) \ |
|
447 | 448 | static_field(PerfMemory, _top, char*) \ |
448 | 449 | static_field(PerfMemory, _capacity, size_t) \ |
449 | 450 | static_field(PerfMemory, _prologue, PerfDataPrologue*) \ |
450 | | - static_field(PerfMemory, _initialized, int) \ |
| 451 | + volatile_static_field(PerfMemory, _initialized, int) \ |
451 | 452 | \ |
452 | 453 | /********************/ \ |
453 | 454 | /* SystemDictionary */ \ |
|
477 | 478 | volatile_nonstatic_field(ClassLoaderData, _klasses, Klass*) \ |
478 | 479 | nonstatic_field(ClassLoaderData, _has_class_mirror_holder, bool) \ |
479 | 480 | \ |
480 | | - static_ptr_volatile_field(ClassLoaderDataGraph, _head, ClassLoaderData*) \ |
| 481 | + volatile_static_field(ClassLoaderDataGraph, _head, ClassLoaderData*) \ |
481 | 482 | \ |
482 | 483 | /**********/ \ |
483 | 484 | /* Arrays */ \ |
|
638 | 639 | static_field(Threads, _number_of_non_daemon_threads, int) \ |
639 | 640 | static_field(Threads, _return_code, int) \ |
640 | 641 | \ |
641 | | - static_ptr_volatile_field(ThreadsSMRSupport, _java_thread_list, ThreadsList*) \ |
| 642 | + volatile_static_field(ThreadsSMRSupport, _java_thread_list, ThreadsList*) \ |
642 | 643 | nonstatic_field(ThreadsList, _length, const uint) \ |
643 | 644 | nonstatic_field(ThreadsList, _threads, JavaThread *const *const) \ |
644 | 645 | \ |
@@ -2685,7 +2686,7 @@ VMStructEntry VMStructs::localHotSpotVMStructs[] = { |
2685 | 2686 |
|
2686 | 2687 | VM_STRUCTS(GENERATE_NONSTATIC_VM_STRUCT_ENTRY, |
2687 | 2688 | GENERATE_STATIC_VM_STRUCT_ENTRY, |
2688 | | - GENERATE_STATIC_PTR_VOLATILE_VM_STRUCT_ENTRY, |
| 2689 | + GENERATE_VOLATILE_STATIC_VM_STRUCT_ENTRY, |
2689 | 2690 | GENERATE_UNCHECKED_NONSTATIC_VM_STRUCT_ENTRY, |
2690 | 2691 | GENERATE_NONSTATIC_VM_STRUCT_ENTRY, |
2691 | 2692 | GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY, |
@@ -2887,7 +2888,7 @@ JNIEXPORT uint64_t gHotSpotVMLongConstantEntryArrayStride = STRIDE(gHotSpotVMLon |
2887 | 2888 | void VMStructs::init() { |
2888 | 2889 | VM_STRUCTS(CHECK_NONSTATIC_VM_STRUCT_ENTRY, |
2889 | 2890 | CHECK_STATIC_VM_STRUCT_ENTRY, |
2890 | | - CHECK_STATIC_PTR_VOLATILE_VM_STRUCT_ENTRY, |
| 2891 | + CHECK_VOLATILE_STATIC_VM_STRUCT_ENTRY, |
2891 | 2892 | CHECK_NO_OP, |
2892 | 2893 | CHECK_VOLATILE_NONSTATIC_VM_STRUCT_ENTRY, |
2893 | 2894 | CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY, |
|
0 commit comments