On Mon, 11 Aug 2025 10:55:44 GMT, Francesco Andreuzzi <d...@openjdk.org> wrote:
> In this PR I add an `autoconfigure` check to make sure that `jfr` is not > built without the feature `services`, which would lead to the following error: > > /jdk/src/hotspot/share/jfr/periodic/jfrPeriodic.cpp: In member function > ‘virtual void VM_GC_SendObjectCountEvent::doit()’: > /jdk/src/hotspot/share/jfr/periodic/jfrPeriodic.cpp:402:5: error: > ‘ObjectCountEventSender’ has not been declared > 402 | ObjectCountEventSender::enable_requestable_event(); > | ^~~~~~~~~~~~~~~~~~~~~~ > /jdk/src/hotspot/share/jfr/periodic/jfrPeriodic.cpp:404:5: error: > ‘ObjectCountEventSender’ has not been declared > 404 | ObjectCountEventSender::disable_requestable_event(); > | ^~~~~~~~~~~~~~~~~~~~~~ > > > To reproduce: > > sh configure --with-jvm-variants=custom --with-conf-name=cstm > --enable-jvm-feature-jfr --enable-jvm-feature-serialgc > make -j hotspot CONF_NAME=cstm This pull request has now been integrated. Changeset: e9e331b2 Author: Francesco Andreuzzi <andreuzzi.france...@gmail.com> Committer: Paul Hohensee <p...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/e9e331b2a957180dac2e9ce19a58d0a57d2f5dae Stats: 4 lines in 1 file changed: 4 ins; 0 del; 0 mod 8365238: 'jfr' feature requires 'services' with 'custom' build variant Reviewed-by: erikj, shade, ihse ------------- PR: https://git.openjdk.org/jdk/pull/26723