< prev index next >

src/hotspot/cpu/ppc/jniFastGetField_ppc.cpp

Print this page
@@ -1,8 +1,8 @@
  /*
-  * Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved.
-  * Copyright (c) 2012, 2025 SAP SE. All rights reserved.
+  * Copyright (c) 1997, 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
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

@@ -28,10 +28,11 @@
  #include "gc/shared/barrierSetAssembler.hpp"
  #include "memory/resourceArea.hpp"
  #include "prims/jniFastGetField.hpp"
  #include "prims/jvm_misc.hpp"
  #include "prims/jvmtiExport.hpp"
+ #include "runtime/jfieldIDWorkaround.hpp"
  #include "runtime/safepoint.hpp"
  
  #define __ masm->
  
  #define BUFFER_SIZE 48*BytesPerInstWord

@@ -96,11 +97,11 @@
    }
  
    BarrierSetAssembler* bs = BarrierSet::barrier_set()->barrier_set_assembler();
    bs->try_resolve_jobject_in_native(masm, Robj, R3_ARG1, R4_ARG2, Rtmp, slow);
  
-   __ srwi(Rtmp, R5_ARG3, 2); // offset
+   __ srwi(Rtmp, R5_ARG3, jfieldIDWorkaround::offset_shift); // offset
  
    assert(count < LIST_CAPACITY, "LIST_CAPACITY too small");
    speculative_load_pclist[count] = __ pc();   // Used by the segfault handler
    bool is_fp = false;
    switch (type) {
< prev index next >