8175267: [s390] cleanup stub code "handler_for_unsafe_access"
authorlucy
Fri, 20 Jan 2017 15:17:46 +0100
changeset 46279 9b0c98f422e9
parent 46278 6db7a35e08ae
child 46280 6eef3d367beb
8175267: [s390] cleanup stub code "handler_for_unsafe_access" Reviewed-by: dholmes, goetz, mdoerr
hotspot/src/cpu/s390/vm/stubGenerator_s390.cpp
hotspot/src/cpu/s390/vm/stubRoutines_s390.cpp
hotspot/src/cpu/s390/vm/stubRoutines_s390.hpp
--- a/hotspot/src/cpu/s390/vm/stubGenerator_s390.cpp	Wed Feb 22 19:51:34 2017 +0000
+++ b/hotspot/src/cpu/s390/vm/stubGenerator_s390.cpp	Fri Jan 20 15:17:46 2017 +0100
@@ -623,26 +623,6 @@
 #define __ (Verbose ? (_masm->block_comment(FILE_AND_LINE),_masm):_masm)->
 #endif
 
-  //----------------------------------------------------------------------
-  // The following routine generates a subroutine to throw an asynchronous
-  // UnknownError when an unsafe access gets a fault that could not be
-  // reasonably prevented by the programmer. (Example: SIGBUS/OBJERR.)
-  //
-  // Arguments:
-  //   trapping PC: ??
-  //
-  // Results:
-  //   Posts an asynchronous exception, skips the trapping instruction.
-  //
-  address generate_handler_for_unsafe_access() {
-    StubCodeMark mark(this, "StubRoutines", "handler_for_unsafe_access");
-    {
-      address start = __ pc();
-      __ unimplemented("StubRoutines::handler_for_unsafe_access", 86);
-      return start;
-    }
-  }
-
   // Support for uint StubRoutine::zarch::partial_subtype_check(Klass
   // sub, Klass super);
   //
@@ -2462,8 +2442,6 @@
     StubRoutines::_throw_IncompatibleClassChangeError_entry= generate_throw_exception("IncompatibleClassChangeError throw_exception", CAST_FROM_FN_PTR(address, SharedRuntime::throw_IncompatibleClassChangeError),  false);
     StubRoutines::_throw_NullPointerException_at_call_entry= generate_throw_exception("NullPointerException at call throw_exception", CAST_FROM_FN_PTR(address, SharedRuntime::throw_NullPointerException_at_call), false);
 
-    StubRoutines::zarch::_handler_for_unsafe_access_entry  =  generate_handler_for_unsafe_access();
-
     // Support for verify_oop (must happen after universe_init).
     StubRoutines::_verify_oop_subroutine_entry             = generate_verify_oop_subroutine();
 
--- a/hotspot/src/cpu/s390/vm/stubRoutines_s390.cpp	Wed Feb 22 19:51:34 2017 +0000
+++ b/hotspot/src/cpu/s390/vm/stubRoutines_s390.cpp	Fri Jan 20 15:17:46 2017 +0100
@@ -33,8 +33,6 @@
 // Implementation of the platform-specific part of StubRoutines - for
 // a description of how to extend it, see the stubRoutines.hpp file.
 
-address StubRoutines::zarch::_handler_for_unsafe_access_entry = NULL;
-
 address StubRoutines::zarch::_partial_subtype_check = NULL;
 
 // Comapct string intrinsics: Translate table for string inflate intrinsic. Used by trot instruction.
--- a/hotspot/src/cpu/s390/vm/stubRoutines_s390.hpp	Wed Feb 22 19:51:34 2017 +0000
+++ b/hotspot/src/cpu/s390/vm/stubRoutines_s390.hpp	Fri Jan 20 15:17:46 2017 +0100
@@ -68,8 +68,6 @@
   };
 
  private:
-  static address _handler_for_unsafe_access_entry;
-
   static int _atomic_memory_operation_lock;
 
   static address _partial_subtype_check;
@@ -91,8 +89,6 @@
   static int atomic_memory_operation_lock() { return _atomic_memory_operation_lock; }
   static void set_atomic_memory_operation_lock(int value) { _atomic_memory_operation_lock = value; }
 
-  static address handler_for_unsafe_access_entry()        { return _handler_for_unsafe_access_entry; }
-
   static address partial_subtype_check()                  { return _partial_subtype_check; }
 
   static void generate_load_crc_table_addr(MacroAssembler* masm, Register table);