< prev index next >

src/hotspot/cpu/ppc/vtableStubs_ppc_64.cpp

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved.
   * Copyright (c) 2012, 2025 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
   * under the terms of the GNU General Public License version 2 only, as
--- 1,7 ---
  /*
!  * Copyright (c) 1997, 2026, Oracle and/or its affiliates. All rights reserved.
   * Copyright (c) 2012, 2025 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
   * under the terms of the GNU General Public License version 2 only, as

*** 42,14 ***
  #ifndef PRODUCT
  extern "C" void bad_compiled_vtable_index(JavaThread* thread, oopDesc* receiver, int index);
  #endif
  
  // Used by compiler only; may use only caller saved, non-argument registers.
! VtableStub* VtableStubs::create_vtable_stub(int vtable_index) {
    // Read "A word on VtableStub sizing" in share/code/vtableStubs.hpp for details on stub sizing.
    const int stub_code_length = code_size_limit(true);
!   VtableStub* s = new(stub_code_length) VtableStub(true, vtable_index);
    // Can be null if there is no free space in the code cache.
    if (s == nullptr) {
      return nullptr;
    }
  
--- 42,14 ---
  #ifndef PRODUCT
  extern "C" void bad_compiled_vtable_index(JavaThread* thread, oopDesc* receiver, int index);
  #endif
  
  // Used by compiler only; may use only caller saved, non-argument registers.
! VtableStub* VtableStubs::create_vtable_stub(int vtable_index, bool caller_is_c1) {
    // Read "A word on VtableStub sizing" in share/code/vtableStubs.hpp for details on stub sizing.
    const int stub_code_length = code_size_limit(true);
!   VtableStub* s = new(stub_code_length) VtableStub(true, vtable_index, caller_is_c1);
    // Can be null if there is no free space in the code cache.
    if (s == nullptr) {
      return nullptr;
    }
  

*** 128,14 ***
    bookkeeping(masm, tty, s, npe_addr, ame_addr, true, vtable_index, slop_bytes, 0);
  
    return s;
  }
  
! VtableStub* VtableStubs::create_itable_stub(int itable_index) {
    // Read "A word on VtableStub sizing" in share/code/vtableStubs.hpp for details on stub sizing.
    const int stub_code_length = code_size_limit(false);
!   VtableStub* s = new(stub_code_length) VtableStub(false, itable_index);
    // Can be null if there is no free space in the code cache.
    if (s == nullptr) {
      return nullptr;
    }
  
--- 128,14 ---
    bookkeeping(masm, tty, s, npe_addr, ame_addr, true, vtable_index, slop_bytes, 0);
  
    return s;
  }
  
! VtableStub* VtableStubs::create_itable_stub(int itable_index, bool caller_is_c1) {
    // Read "A word on VtableStub sizing" in share/code/vtableStubs.hpp for details on stub sizing.
    const int stub_code_length = code_size_limit(false);
!   VtableStub* s = new(stub_code_length) VtableStub(false, itable_index, caller_is_c1);
    // Can be null if there is no free space in the code cache.
    if (s == nullptr) {
      return nullptr;
    }
  
< prev index next >