< prev index next >

src/hotspot/cpu/s390/relocInfo_s390.hpp

Print this page
rev 48402 : 8193927: Optimize scanning code for oops.
Reviewed-by: simonis, mdoerr, aph
   1 /*
   2  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright (c) 2016 SAP SE. All rights reserved.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *


  92  private:
  93   enum {
  94     // Instructions are HW (2-byte) aligned on z/Architecture.
  95     offset_unit        =  2,
  96 
  97     // Encodes Assembler::disp32_operand vs. Assembler::imm64_operand.
  98     // (Assembler::call32_operand is used on call instructions only.)
  99     format_width       =  2
 100   };
 101 
 102  public:
 103 
 104   enum relocFormat {
 105     no_format           = 0,
 106     uncompressed_format = 0,  // Relocation is for a regular oop.
 107     compressed_format   = 1,  // Relocation is for a narrow (compressed) oop or klass.
 108                               // Similar to relocInfo::narrow_oop_in_const.
 109     pcrel_addr_format   = 2,  // Relocation is for the target LOCATION of a pc-relative instruction.
 110     pcrel_data_format   = 3   // Relocation is for the target data of a pc-relative instruction.
 111   };




 112 
 113   // Store the new target address into an oop_Relocation cell, if any.
 114   // Return indication if update happened.
 115   static bool update_oop_pool(address begin, address end, address newTarget, CodeBlob* cb);
 116 
 117 #endif // CPU_S390_VM_RELOCINFO_S390_HPP
   1 /*
   2  * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright (c) 2016, 2018 SAP SE. All rights reserved.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *


  92  private:
  93   enum {
  94     // Instructions are HW (2-byte) aligned on z/Architecture.
  95     offset_unit        =  2,
  96 
  97     // Encodes Assembler::disp32_operand vs. Assembler::imm64_operand.
  98     // (Assembler::call32_operand is used on call instructions only.)
  99     format_width       =  2
 100   };
 101 
 102  public:
 103 
 104   enum relocFormat {
 105     no_format           = 0,
 106     uncompressed_format = 0,  // Relocation is for a regular oop.
 107     compressed_format   = 1,  // Relocation is for a narrow (compressed) oop or klass.
 108                               // Similar to relocInfo::narrow_oop_in_const.
 109     pcrel_addr_format   = 2,  // Relocation is for the target LOCATION of a pc-relative instruction.
 110     pcrel_data_format   = 3   // Relocation is for the target data of a pc-relative instruction.
 111   };
 112 
 113   // This platform has no oops in the code that are not also
 114   // listed in the oop section.
 115   static bool mustIterateImmediateOopsInCode() { return false; }
 116 
 117   // Store the new target address into an oop_Relocation cell, if any.
 118   // Return indication if update happened.
 119   static bool update_oop_pool(address begin, address end, address newTarget, CodeBlob* cb);
 120 
 121 #endif // CPU_S390_VM_RELOCINFO_S390_HPP
< prev index next >