From f925f82bcba47b322f0ec726540cf374ac73826e Mon Sep 17 00:00:00 2001 From: David Linus Briemann Date: Mon, 15 Jun 2026 14:28:27 +0200 Subject: [PATCH 1/3] 8386659: PPC: cleanup dtrace leftovers part 2 --- src/hotspot/cpu/ppc/c1_Runtime1_ppc.cpp | 15 +-------------- src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp | 4 ---- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/src/hotspot/cpu/ppc/c1_Runtime1_ppc.cpp b/src/hotspot/cpu/ppc/c1_Runtime1_ppc.cpp index 09efa2c841b1a..5c6b5ce612838 100644 --- a/src/hotspot/cpu/ppc/c1_Runtime1_ppc.cpp +++ b/src/hotspot/cpu/ppc/c1_Runtime1_ppc.cpp @@ -760,22 +760,9 @@ OopMapSet* Runtime1::generate_code_for(StubId id, StubAssembler* sasm) { break; case StubId::c1_dtrace_object_alloc_id: - { // O0: object + { __ unimplemented("stub dtrace_object_alloc_id"); __ set_info("dtrace_object_alloc", dont_gc_arguments); -// // We can't gc here so skip the oopmap but make sure that all -// // the live registers get saved. -// save_live_registers(sasm); -// -// __ save_thread(L7_thread_cache); -// __ call(CAST_FROM_FN_PTR(address, static_cast(SharedRuntime::dtrace_object_alloc)), -// relocInfo::runtime_call_type); -// __ delayed()->mov(I0, O0); -// __ restore_thread(L7_thread_cache); -// -// restore_live_registers(sasm); -// __ ret(); -// __ delayed()->restore(); } break; diff --git a/src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp b/src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp index fc444cb692354..2a467e505b344 100644 --- a/src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp +++ b/src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp @@ -2320,10 +2320,6 @@ nmethod *SharedRuntime::generate_native_wrapper(MacroAssembler *masm, // Make sure that thread is non-volatile; it crosses a bunch of VM calls below. assert(R16_thread->is_nonvolatile(), "thread must be in non-volatile register"); -# if 0 - // DTrace method entry -# endif - // Lock a synchronized method. // -------------------------------------------------------------------------- From 4b950f896af75d2233be42805578659bc35a5acf Mon Sep 17 00:00:00 2001 From: David Linus Briemann Date: Mon, 15 Jun 2026 14:36:32 +0200 Subject: [PATCH 2/3] updated copyright headers --- src/hotspot/cpu/ppc/c1_Runtime1_ppc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/cpu/ppc/c1_Runtime1_ppc.cpp b/src/hotspot/cpu/ppc/c1_Runtime1_ppc.cpp index 5c6b5ce612838..5649f23856c5c 100644 --- a/src/hotspot/cpu/ppc/c1_Runtime1_ppc.cpp +++ b/src/hotspot/cpu/ppc/c1_Runtime1_ppc.cpp @@ -1,6 +1,6 @@ /* - * Copyright (c) 1999, 2025, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2012, 2025 SAP SE. All rights reserved. + * Copyright (c) 1999, 2026, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2026 SAP SE. 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 From ec214f3811b1eadedb16c62d2e6ce34fc956039f Mon Sep 17 00:00:00 2001 From: David Linus Briemann Date: Tue, 16 Jun 2026 09:11:01 +0200 Subject: [PATCH 3/3] remove another outdated snippet --- src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp b/src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp index 2a467e505b344..a1446f4979798 100644 --- a/src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp +++ b/src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp @@ -2591,10 +2591,6 @@ nmethod *SharedRuntime::generate_native_wrapper(MacroAssembler *masm, __ bind(done); } -# if 0 - // DTrace method exit -# endif - // Clear "last Java frame" SP and PC. // --------------------------------------------------------------------------