8227173: Minor cleanup of unused code in compile.hpp
authorthartmann
Thu, 04 Jul 2019 09:12:21 +0200
changeset 55583 82fae48799e4
parent 55582 12cb0fb3b425
child 55584 ef032c55234c
8227173: Minor cleanup of unused code in compile.hpp Summary: Removed unused code. Reviewed-by: kvn
src/hotspot/share/opto/compile.cpp
src/hotspot/share/opto/compile.hpp
src/hotspot/share/opto/type.hpp
--- a/src/hotspot/share/opto/compile.cpp	Wed Jul 03 16:29:20 2019 -0700
+++ b/src/hotspot/share/opto/compile.cpp	Thu Jul 04 09:12:21 2019 +0200
@@ -465,7 +465,6 @@
   compile->set_type_dict(NULL);
   compile->set_clone_map(new Dict(cmpkey, hashkey, _compile->comp_arena()));
   compile->clone_map().set_clone_idx(0);
-  compile->set_type_hwm(NULL);
   compile->set_type_last_size(0);
   compile->set_last_tf(NULL, NULL);
   compile->set_indexSet_arena(NULL);
--- a/src/hotspot/share/opto/compile.hpp	Wed Jul 03 16:29:20 2019 -0700
+++ b/src/hotspot/share/opto/compile.hpp	Thu Jul 04 09:12:21 2019 +0200
@@ -478,7 +478,6 @@
   Arena*                _type_arena;            // Alias for _Compile_types except in Initialize_shared()
   Dict*                 _type_dict;             // Intern table
   CloneMap              _clone_map;             // used for recording history of cloned nodes
-  void*                 _type_hwm;              // Last allocation (see Type::operator new/delete)
   size_t                _type_last_size;        // Last allocation size (see Type::operator new/delete)
   ciMethod*             _last_tf_m;             // Cache for
   const TypeFunc*       _last_tf;               //  TypeFunc::make
@@ -977,14 +976,12 @@
   // Type management
   Arena*            type_arena()                { return _type_arena; }
   Dict*             type_dict()                 { return _type_dict; }
-  void*             type_hwm()                  { return _type_hwm; }
   size_t            type_last_size()            { return _type_last_size; }
   int               num_alias_types()           { return _num_alias_types; }
 
   void          init_type_arena()                       { _type_arena = &_Compile_types; }
   void          set_type_arena(Arena* a)                { _type_arena = a; }
   void          set_type_dict(Dict* d)                  { _type_dict = d; }
-  void          set_type_hwm(void* p)                   { _type_hwm = p; }
   void          set_type_last_size(size_t sz)           { _type_last_size = sz; }
 
   const TypeFunc* last_tf(ciMethod* m) {
--- a/src/hotspot/share/opto/type.hpp	Wed Jul 03 16:29:20 2019 -0700
+++ b/src/hotspot/share/opto/type.hpp	Thu Jul 04 09:12:21 2019 +0200
@@ -184,9 +184,7 @@
   inline void* operator new( size_t x ) throw() {
     Compile* compile = Compile::current();
     compile->set_type_last_size(x);
-    void *temp = compile->type_arena()->Amalloc_D(x);
-    compile->set_type_hwm(temp);
-    return temp;
+    return compile->type_arena()->Amalloc_D(x);
   }
   inline void operator delete( void* ptr ) {
     Compile* compile = Compile::current();