1 /* 2 * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #include "precompiled.hpp" 26 #include "jvm.h" 27 #include "classfile/classLoaderStats.hpp" 28 #include "classfile/javaClasses.hpp" 29 #include "code/codeCache.hpp" 30 #include "compiler/compileBroker.hpp" 31 #include "gc_implementation/g1/g1HeapRegionEventSender.hpp" 32 #include "gc_implementation/shared/gcConfiguration.hpp" 33 #include "gc_implementation/shared/gcTrace.hpp" 34 #include "gc_implementation/shared/objectCountEventSender.hpp" 35 #include "gc_implementation/shared/vmGCOperations.hpp" 36 #include "jfr/jfrEvents.hpp" 37 #include "jfr/periodic/jfrOSInterface.hpp" 38 #include "jfr/periodic/jfrThreadCPULoadEvent.hpp" 39 #include "jfr/periodic/jfrThreadDumpEvent.hpp" 40 #include "jfr/periodic/jfrNetworkUtilization.hpp" 41 #include "jfr/recorder/jfrRecorder.hpp" 42 #include "jfr/support/jfrThreadId.hpp" 43 #include "jfr/utilities/jfrTime.hpp" 44 #include "jfrfiles/jfrPeriodic.hpp" 45 #include "memory/heapInspection.hpp" 46 #include "memory/resourceArea.hpp" 47 #include "oops/oop.inline.hpp" 48 #include "runtime/arguments.hpp" 49 #include "runtime/globals.hpp" 50 #include "runtime/os.hpp" 51 #include "runtime/os_perf.hpp" 52 #include "runtime/thread.inline.hpp" 53 #include "runtime/sweeper.hpp" 54 #include "runtime/vmThread.hpp" 55 #include "services/classLoadingService.hpp" 56 #include "services/management.hpp" 57 #include "services/threadService.hpp" 58 #include "utilities/exceptions.hpp" 59 #include "utilities/globalDefinitions.hpp" 60 61 #if INCLUDE_ALL_GCS 62 #include "gc_implementation/shenandoah/shenandoahJfrSupport.hpp" 63 #endif 64 65 /** 66 * JfrPeriodic class 67 * Implementation of declarations in 68 * xsl generated traceRequestables.hpp 69 */ 70 #define TRACE_REQUEST_FUNC(id) void JfrPeriodicEventSet::request##id(void) 71 72 TRACE_REQUEST_FUNC(JVMInformation) { 73 ResourceMark rm; 74 EventJVMInformation event; 75 event.set_jvmName(VM_Version::vm_name()); 76 event.set_jvmVersion(VM_Version::internal_vm_info_string()); 77 event.set_javaArguments(Arguments::java_command()); 78 event.set_jvmArguments(Arguments::jvm_args()); 79 event.set_jvmFlags(Arguments::jvm_flags()); 80 event.set_jvmStartTime(Management::vm_init_done_time()); 81 event.set_pid(os::current_process_id()); 82 event.commit(); 83 } 84 85 TRACE_REQUEST_FUNC(OSInformation) { 86 ResourceMark rm; 87 char* os_name = NEW_RESOURCE_ARRAY(char, 2048); 88 JfrOSInterface::os_version(&os_name); 89 EventOSInformation event; 90 event.set_osVersion(os_name); 91 event.commit(); 92 } 93 94 /* 95 * This is left empty on purpose, having ExecutionSample as a requestable 96 * is a way of getting the period. The period is passed to ThreadSampling::update_period. 97 * Implementation in jfrSamples.cpp 98 */ 99 TRACE_REQUEST_FUNC(ExecutionSample) { 100 } 101 TRACE_REQUEST_FUNC(NativeMethodSample) { 102 } 103 104 TRACE_REQUEST_FUNC(ThreadDump) { 105 ResourceMark rm; 106 EventThreadDump event; 107 event.set_result(JfrDcmdEvent::thread_dump()); 108 event.commit(); 109 } 110 111 static int _native_library_callback(const char* name, address base, address top, void *param) { 112 EventNativeLibrary event(UNTIMED); 113 event.set_name(name); 114 event.set_baseAddress((u8)base); 115 event.set_topAddress((u8)top); 116 event.set_endtime(*(JfrTicks*) param); 117 event.commit(); 118 return 0; 119 } 120 121 TRACE_REQUEST_FUNC(NativeLibrary) { 122 JfrTicks ts= JfrTicks::now(); 123 os::get_loaded_modules_info(&_native_library_callback, (void *)&ts); 124 } 125 126 TRACE_REQUEST_FUNC(InitialEnvironmentVariable) { 127 JfrOSInterface::generate_initial_environment_variable_events(); 128 } 129 130 TRACE_REQUEST_FUNC(CPUInformation) { 131 CPUInformation cpu_info; 132 int ret_val = JfrOSInterface::cpu_information(cpu_info); 133 if (ret_val == OS_ERR) { 134 if (LogJFR) tty->print_cr( "Unable to generate requestable event CPUInformation"); 135 return; 136 } 137 if (ret_val == FUNCTIONALITY_NOT_IMPLEMENTED) { 138 return; 139 } 140 if (ret_val == OS_OK) { 141 EventCPUInformation event; 142 event.set_cpu(cpu_info.cpu_name()); 143 event.set_description(cpu_info.cpu_description()); 144 event.set_sockets(cpu_info.number_of_sockets()); 145 event.set_cores(cpu_info.number_of_cores()); 146 event.set_hwThreads(cpu_info.number_of_hardware_threads()); 147 event.commit(); 148 } 149 } 150 151 TRACE_REQUEST_FUNC(CPULoad) { 152 double u = 0; // user time 153 double s = 0; // kernel time 154 double t = 0; // total time 155 int ret_val = JfrOSInterface::cpu_loads_process(&u, &s, &t); 156 if (ret_val == OS_ERR) { 157 if (LogJFR) tty->print_cr( "Unable to generate requestable event CPULoad"); 158 return; 159 } 160 if (ret_val == OS_OK) { 161 EventCPULoad event; 162 event.set_jvmUser((float)u); 163 event.set_jvmSystem((float)s); 164 event.set_machineTotal((float)t); 165 event.commit(); 166 } 167 } 168 169 TRACE_REQUEST_FUNC(ThreadCPULoad) { 170 JfrThreadCPULoadEvent::send_events(); 171 } 172 173 TRACE_REQUEST_FUNC(NetworkUtilization) { 174 JfrNetworkUtilization::send_events(); 175 } 176 177 TRACE_REQUEST_FUNC(CPUTimeStampCounter) { 178 EventCPUTimeStampCounter event; 179 event.set_fastTimeEnabled(JfrTime::is_ft_enabled()); 180 event.set_fastTimeAutoEnabled(JfrTime::is_ft_supported()); 181 event.set_osFrequency(os::elapsed_frequency()); 182 event.set_fastTimeFrequency(JfrTime::frequency()); 183 event.commit(); 184 } 185 186 TRACE_REQUEST_FUNC(SystemProcess) { 187 char pid_buf[16]; 188 SystemProcess* processes = NULL; 189 int num_of_processes = 0; 190 JfrTicks start_time = JfrTicks::now(); 191 int ret_val = JfrOSInterface::system_processes(&processes, &num_of_processes); 192 if (ret_val == OS_ERR) { 193 if (LogJFR) tty->print_cr( "Unable to generate requestable event SystemProcesses"); 194 return; 195 } 196 JfrTicks end_time = JfrTicks::now(); 197 if (ret_val == FUNCTIONALITY_NOT_IMPLEMENTED) { 198 return; 199 } 200 if (ret_val == OS_OK) { 201 // feature is implemented, write real event 202 while (processes != NULL) { 203 SystemProcess* tmp = processes; 204 const char* info = processes->command_line(); 205 if (info == NULL) { 206 info = processes->path(); 207 } 208 if (info == NULL) { 209 info = processes->name(); 210 } 211 if (info == NULL) { 212 info = "?"; 213 } 214 jio_snprintf(pid_buf, sizeof(pid_buf), "%d", processes->pid()); 215 EventSystemProcess event(UNTIMED); 216 event.set_pid(pid_buf); 217 event.set_commandLine(info); 218 event.set_starttime(start_time); 219 event.set_endtime(end_time); 220 event.commit(); 221 processes = processes->next(); 222 delete tmp; 223 } 224 } 225 } 226 227 TRACE_REQUEST_FUNC(ThreadContextSwitchRate) { 228 double rate = 0.0; 229 int ret_val = JfrOSInterface::context_switch_rate(&rate); 230 if (ret_val == OS_ERR) { 231 if (LogJFR) tty->print_cr( "Unable to generate requestable event ThreadContextSwitchRate"); 232 return; 233 } 234 if (ret_val == FUNCTIONALITY_NOT_IMPLEMENTED) { 235 return; 236 } 237 if (ret_val == OS_OK) { 238 EventThreadContextSwitchRate event; 239 event.set_switchRate((float)rate + 0.0f); 240 event.commit(); 241 } 242 } 243 244 #define SEND_FLAGS_OF_TYPE(eventType, flagType) \ 245 do { \ 246 Flag *flag = Flag::flags; \ 247 while (flag->_name != NULL) { \ 248 if (flag->is_ ## flagType()) { \ 249 if (flag->is_unlocked()) { \ 250 Event ## eventType event; \ 251 event.set_name(flag->_name); \ 252 event.set_value(flag->get_ ## flagType()); \ 253 event.set_origin(flag->get_origin()); \ 254 event.commit(); \ 255 } \ 256 } \ 257 ++flag; \ 258 } \ 259 } while (0) 260 261 TRACE_REQUEST_FUNC(IntFlag) { 262 SEND_FLAGS_OF_TYPE(IntFlag, intx); 263 } 264 265 TRACE_REQUEST_FUNC(UnsignedIntFlag) { 266 SEND_FLAGS_OF_TYPE(UnsignedIntFlag, uintx); 267 } 268 269 TRACE_REQUEST_FUNC(LongFlag) { 270 SEND_FLAGS_OF_TYPE(LongFlag, intx); 271 } 272 273 TRACE_REQUEST_FUNC(UnsignedLongFlag) { 274 SEND_FLAGS_OF_TYPE(UnsignedLongFlag, uintx); 275 SEND_FLAGS_OF_TYPE(UnsignedLongFlag, uint64_t); 276 } 277 278 TRACE_REQUEST_FUNC(DoubleFlag) { 279 SEND_FLAGS_OF_TYPE(DoubleFlag, double); 280 } 281 282 TRACE_REQUEST_FUNC(BooleanFlag) { 283 SEND_FLAGS_OF_TYPE(BooleanFlag, bool); 284 } 285 286 TRACE_REQUEST_FUNC(StringFlag) { 287 SEND_FLAGS_OF_TYPE(StringFlag, ccstr); 288 } 289 290 class VM_GC_SendObjectCountEvent : public VM_GC_HeapInspection { 291 public: 292 VM_GC_SendObjectCountEvent() : VM_GC_HeapInspection(NULL, true) {} 293 virtual void doit() { 294 ObjectCountEventSender::enable_requestable_event(); 295 collect(); 296 ObjectCountEventSender::disable_requestable_event(); 297 } 298 }; 299 300 TRACE_REQUEST_FUNC(ObjectCount) { 301 VM_GC_SendObjectCountEvent op; 302 VMThread::execute(&op); 303 } 304 305 class VM_G1SendHeapRegionInfoEvents : public VM_Operation { 306 virtual void doit() { 307 G1HeapRegionEventSender::send_events(); 308 } 309 virtual VMOp_Type type() const { return VMOp_HeapIterateOperation; } 310 }; 311 312 TRACE_REQUEST_FUNC(G1HeapRegionInformation) { 313 if (UseG1GC) { 314 VM_G1SendHeapRegionInfoEvents op; 315 VMThread::execute(&op); 316 } 317 } 318 319 // Java Mission Control (JMC) uses (Java) Long.MIN_VALUE to describe that a 320 // long value is undefined. 321 static jlong jmc_undefined_long = min_jlong; 322 323 TRACE_REQUEST_FUNC(GCConfiguration) { 324 GCConfiguration conf; 325 jlong pause_target = conf.has_pause_target_default_value() ? jmc_undefined_long : conf.pause_target(); 326 EventGCConfiguration event; 327 event.set_youngCollector(conf.young_collector()); 328 event.set_oldCollector(conf.old_collector()); 329 event.set_parallelGCThreads(conf.num_parallel_gc_threads()); 330 event.set_concurrentGCThreads(conf.num_concurrent_gc_threads()); 331 event.set_usesDynamicGCThreads(conf.uses_dynamic_gc_threads()); 332 event.set_isExplicitGCConcurrent(conf.is_explicit_gc_concurrent()); 333 event.set_isExplicitGCDisabled(conf.is_explicit_gc_disabled()); 334 event.set_gcTimeRatio(conf.gc_time_ratio()); 335 event.set_pauseTarget((s8)pause_target); 336 event.commit(); 337 } 338 339 TRACE_REQUEST_FUNC(GCTLABConfiguration) { 340 GCTLABConfiguration conf; 341 EventGCTLABConfiguration event; 342 event.set_usesTLABs(conf.uses_tlabs()); 343 event.set_minTLABSize(conf.min_tlab_size()); 344 event.set_tlabRefillWasteLimit(conf.tlab_refill_waste_limit()); 345 event.commit(); 346 } 347 348 TRACE_REQUEST_FUNC(GCSurvivorConfiguration) { 349 GCSurvivorConfiguration conf; 350 EventGCSurvivorConfiguration event; 351 event.set_maxTenuringThreshold(conf.max_tenuring_threshold()); 352 event.set_initialTenuringThreshold(conf.initial_tenuring_threshold()); 353 event.commit(); 354 } 355 356 TRACE_REQUEST_FUNC(GCHeapConfiguration) { 357 GCHeapConfiguration conf; 358 EventGCHeapConfiguration event; 359 event.set_minSize(conf.min_size()); 360 event.set_maxSize(conf.max_size()); 361 event.set_initialSize(conf.initial_size()); 362 event.set_usesCompressedOops(conf.uses_compressed_oops()); 363 event.set_compressedOopsMode(conf.narrow_oop_mode()); 364 event.set_objectAlignment(conf.object_alignment_in_bytes()); 365 event.set_heapAddressBits(conf.heap_address_size_in_bits()); 366 event.commit(); 367 } 368 369 TRACE_REQUEST_FUNC(YoungGenerationConfiguration) { 370 GCYoungGenerationConfiguration conf; 371 jlong max_size = conf.has_max_size_default_value() ? jmc_undefined_long : conf.max_size(); 372 EventYoungGenerationConfiguration event; 373 event.set_maxSize((u8)max_size); 374 event.set_minSize(conf.min_size()); 375 event.set_newRatio(conf.new_ratio()); 376 event.commit(); 377 } 378 379 TRACE_REQUEST_FUNC(InitialSystemProperty) { 380 SystemProperty* p = Arguments::system_properties(); 381 JfrTicks time_stamp = JfrTicks::now(); 382 while (p != NULL) { 383 if (true/* XXX fix me if you want !p->internal()*/) { 384 EventInitialSystemProperty event(UNTIMED); 385 event.set_key(p->key()); 386 event.set_value(p->value()); 387 event.set_endtime(time_stamp); 388 event.commit(); 389 } 390 p = p->next(); 391 } 392 } 393 394 TRACE_REQUEST_FUNC(ThreadAllocationStatistics) { 395 ResourceMark rm; 396 int initial_size = Threads::number_of_threads(); 397 GrowableArray<jlong> allocated(initial_size); 398 GrowableArray<traceid> thread_ids(initial_size); 399 JfrTicks time_stamp = JfrTicks::now(); 400 { 401 // Collect allocation statistics while holding threads lock 402 MutexLockerEx ml(Threads_lock); 403 for (JavaThread *thread = Threads::first(); thread != NULL; thread = thread->next()) { 404 allocated.append(thread->cooked_allocated_bytes()); 405 thread_ids.append(JFR_THREAD_ID(thread)); 406 } 407 } 408 409 // Write allocation statistics to buffer. 410 for(int i = 0; i < thread_ids.length(); i++) { 411 EventThreadAllocationStatistics event(UNTIMED); 412 event.set_allocated(allocated.at(i)); 413 event.set_thread(thread_ids.at(i)); 414 event.set_endtime(time_stamp); 415 event.commit(); 416 } 417 } 418 419 /** 420 * PhysicalMemory event represents: 421 * 422 * @totalSize == The amount of physical memory (hw) installed and reported by the OS, in bytes. 423 * @usedSize == The amount of physical memory currently in use in the system (reserved/committed), in bytes. 424 * 425 * Both fields are systemwide, i.e. represents the entire OS/HW environment. 426 * These fields do not include virtual memory. 427 * 428 * If running inside a guest OS on top of a hypervisor in a virtualized environment, 429 * the total memory reported is the amount of memory configured for the guest OS by the hypervisor. 430 */ 431 TRACE_REQUEST_FUNC(PhysicalMemory) { 432 u8 totalPhysicalMemory = os::physical_memory(); 433 EventPhysicalMemory event; 434 event.set_totalSize(totalPhysicalMemory); 435 event.set_usedSize(totalPhysicalMemory - os::available_memory()); 436 event.commit(); 437 } 438 439 TRACE_REQUEST_FUNC(JavaThreadStatistics) { 440 EventJavaThreadStatistics event; 441 event.set_activeCount(ThreadService::get_live_thread_count()); 442 event.set_daemonCount(ThreadService::get_daemon_thread_count()); 443 event.set_accumulatedCount(ThreadService::get_total_thread_count()); 444 event.set_peakCount(ThreadService::get_peak_thread_count()); 445 event.commit(); 446 } 447 448 TRACE_REQUEST_FUNC(ClassLoadingStatistics) { 449 EventClassLoadingStatistics event; 450 event.set_loadedClassCount(ClassLoadingService::loaded_class_count()); 451 event.set_unloadedClassCount(ClassLoadingService::unloaded_class_count()); 452 event.commit(); 453 } 454 455 class JfrClassLoaderStatsClosure : public ClassLoaderStatsClosure { 456 public: 457 JfrClassLoaderStatsClosure() : ClassLoaderStatsClosure(NULL) {} 458 459 bool do_entry(oop const& key, ClassLoaderStats* const& cls) { 460 const ClassLoaderData* this_cld = cls->_class_loader != NULL ? 461 java_lang_ClassLoader::loader_data(cls->_class_loader) : (ClassLoaderData*)NULL; 462 const ClassLoaderData* parent_cld = cls->_parent != NULL ? 463 java_lang_ClassLoader::loader_data(cls->_parent) : (ClassLoaderData*)NULL; 464 EventClassLoaderStatistics event; 465 event.set_classLoader(this_cld); 466 event.set_parentClassLoader(parent_cld); 467 event.set_classLoaderData((intptr_t)cls->_cld); 468 event.set_classCount(cls->_classes_count); 469 event.set_chunkSize(cls->_chunk_sz); 470 event.set_blockSize(cls->_block_sz); 471 event.set_anonymousClassCount(cls->_anon_classes_count); 472 event.set_anonymousChunkSize(cls->_anon_chunk_sz); 473 event.set_anonymousBlockSize(cls->_anon_block_sz); 474 event.commit(); 475 return true; 476 } 477 478 void createEvents(void) { 479 _stats->iterate(this); 480 } 481 }; 482 483 class JfrClassLoaderStatsVMOperation : public ClassLoaderStatsVMOperation { 484 public: 485 JfrClassLoaderStatsVMOperation() : ClassLoaderStatsVMOperation(NULL) { } 486 487 void doit() { 488 JfrClassLoaderStatsClosure clsc; 489 ClassLoaderDataGraph::cld_do(&clsc); 490 clsc.createEvents(); 491 } 492 }; 493 494 TRACE_REQUEST_FUNC(ClassLoaderStatistics) { 495 JfrClassLoaderStatsVMOperation op; 496 VMThread::execute(&op); 497 } 498 499 TRACE_REQUEST_FUNC(CompilerStatistics) { 500 EventCompilerStatistics event; 501 event.set_compileCount(CompileBroker::get_total_compile_count()); 502 event.set_bailoutCount(CompileBroker::get_total_bailout_count()); 503 event.set_invalidatedCount(CompileBroker::get_total_invalidated_count()); 504 event.set_osrCompileCount(CompileBroker::get_total_osr_compile_count()); 505 event.set_standardCompileCount(CompileBroker::get_total_standard_compile_count()); 506 event.set_osrBytesCompiled(CompileBroker::get_sum_osr_bytes_compiled()); 507 event.set_standardBytesCompiled(CompileBroker::get_sum_standard_bytes_compiled()); 508 event.set_nmetodsSize(CompileBroker::get_sum_nmethod_size()); 509 event.set_nmetodCodeSize(CompileBroker::get_sum_nmethod_code_size()); 510 event.set_peakTimeSpent(CompileBroker::get_peak_compilation_time()); 511 event.set_totalTimeSpent(CompileBroker::get_total_compilation_time()); 512 event.commit(); 513 } 514 515 TRACE_REQUEST_FUNC(CompilerConfiguration) { 516 EventCompilerConfiguration event; 517 event.set_threadCount(CICompilerCount); 518 event.set_tieredCompilation(TieredCompilation); 519 event.commit(); 520 } 521 522 TRACE_REQUEST_FUNC(CodeCacheStatistics) { 523 EventCodeCacheStatistics event; 524 event.set_codeBlobType((u1)0/*bt*/); // XXX 525 event.set_startAddress((u8)CodeCache::low_bound()); 526 event.set_reservedTopAddress((u8)CodeCache::high_bound()); 527 event.set_entryCount(CodeCache::nof_blobs()); 528 event.set_methodCount(CodeCache::nof_nmethods()); 529 event.set_adaptorCount(CodeCache::nof_adapters()); 530 event.set_unallocatedCapacity(CodeCache::unallocated_capacity()); 531 event.set_fullCount(CodeCache::get_codemem_full_count()); 532 event.commit(); 533 } 534 535 TRACE_REQUEST_FUNC(CodeCacheConfiguration) { 536 EventCodeCacheConfiguration event; 537 event.set_initialSize(InitialCodeCacheSize); 538 event.set_reservedSize(ReservedCodeCacheSize); 539 event.set_nonNMethodSize(0/*NonNMethodCodeHeapSize*/); // XXX 540 event.set_profiledSize(0/*ProfiledCodeHeapSize*/); // XXX 541 event.set_nonProfiledSize(0/*NonProfiledCodeHeapSize*/); // XXX 542 event.set_expansionSize(CodeCacheExpansionSize); 543 event.set_minBlockLength(CodeCacheMinBlockLength); 544 event.set_startAddress((u8)CodeCache::low_bound()); 545 event.set_reservedTopAddress((u8)CodeCache::high_bound()); 546 event.commit(); 547 } 548 549 TRACE_REQUEST_FUNC(CodeSweeperStatistics) { 550 EventCodeSweeperStatistics event; 551 event.set_sweepCount(NMethodSweeper::traversal_count()); 552 event.set_methodReclaimedCount(NMethodSweeper::total_nof_methods_reclaimed()); 553 event.set_totalSweepTime(NMethodSweeper::total_time_sweeping()); 554 event.set_peakFractionTime(NMethodSweeper::peak_sweep_fraction_time()); 555 event.set_peakSweepTime(NMethodSweeper::peak_sweep_time()); 556 event.commit(); 557 } 558 559 TRACE_REQUEST_FUNC(CodeSweeperConfiguration) { 560 EventCodeSweeperConfiguration event; 561 event.set_sweeperEnabled(MethodFlushing); 562 event.set_flushingEnabled(UseCodeCacheFlushing); 563 event.commit(); 564 } 565 566 567 TRACE_REQUEST_FUNC(ShenandoahHeapRegionInformation) { 568 #if INCLUDE_ALL_GCS 569 if (UseShenandoahGC) { 570 VM_ShenandoahSendHeapRegionInfoEvents op; 571 VMThread::execute(&op); 572 } 573 #endif 574 } 575