< prev index next >

src/hotspot/share/gc/parallel/psCompactionManager.hpp

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 2005, 2020, Oracle and/or its affiliates. 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.

@@ -48,20 +48,10 @@
    friend class MarkFromRootsTask;
    friend class UpdateDensePrefixAndCompactionTask;
  
   public:
  
- // ------------------------  Don't putback if not needed
-   // Actions that the compaction manager should take.
-   enum Action {
-     Update,
-     Copy,
-     UpdateAndCopy,
-     CopyAndUpdate,
-     NotValid
-   };
- // ------------------------  End don't putback if not needed
  
   private:
    // 32-bit:  4K * 8 = 32KiB; 64-bit:  8K * 16 = 128KiB
    #define QUEUE_SIZE (1 << NOT_LP64(12) LP64_ONLY(13))
    typedef OverflowTaskQueue<ObjArrayTask, mtGC, QUEUE_SIZE> ObjArrayTaskQueue;

@@ -93,12 +83,10 @@
  
    // Provides mutual exclusive access of _shadow_region_array.
    // See pop/push_shadow_region_mt_safe() below
    static Monitor*               _shadow_region_monitor;
  
-   Action _action;
- 
    HeapWord* _last_query_beg;
    oop _last_query_obj;
    size_t _last_query_ret;
  
    static PSOldGen* old_gen()             { return _old_gen; }

@@ -136,13 +124,10 @@
      _last_query_beg = NULL;
      _last_query_obj = NULL;
      _last_query_ret = 0;
    }
  
-   Action action() { return _action; }
-   void set_action(Action v) { _action = v; }
- 
    // Bitmap query support, cache last query and result
    HeapWord* last_query_begin() { return _last_query_beg; }
    oop last_query_object() { return _last_query_obj; }
    size_t last_query_return() { return _last_query_ret; }
  
< prev index next >