--- old/src/hotspot/share/jfr/periodic/jfrPeriodic.cpp 2019-05-02 15:26:59.165423792 -0400 +++ new/src/hotspot/share/jfr/periodic/jfrPeriodic.cpp 2019-05-02 15:26:58.921425282 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -62,7 +62,9 @@ #include "services/threadService.hpp" #include "utilities/exceptions.hpp" #include "utilities/globalDefinitions.hpp" - +#if INCLUDE_SHENANDOAHGC +#include "gc/shenandoah/shenandoahJfrSupport.hpp" +#endif /** * JfrPeriodic class * Implementation of declarations in @@ -577,3 +579,12 @@ event.set_flushingEnabled(UseCodeCacheFlushing); event.commit(); } + +#if INCLUDE_SHENANDOAHGC +TRACE_REQUEST_FUNC(ShenandoahHeapRegionInformation) { + if (UseShenandoahGC) { + VM_ShenandoahSendHeapRegionInfoEvents op; + VMThread::execute(&op); + } +} +#endif