diff hotspot/src/share/vm/gc/shared/workgroup.hpp @ 35465:34ab60aee787

8145037: Clean up FreeIdSet usage Summary: Avoid wasting space for the unused sets Reviewed-by: tschatzl
author aharlap
date Fri, 08 Jan 2016 15:41:44 -0500
parents d00805788fdd
children 8d947f31586e
line wrap: on
line diff
--- a/hotspot/src/share/vm/gc/shared/workgroup.hpp	Fri Jan 08 12:56:16 2016 +0000
+++ b/hotspot/src/share/vm/gc/shared/workgroup.hpp	Fri Jan 08 15:41:44 2016 -0500
@@ -378,30 +378,4 @@
   bool all_tasks_completed();
 };
 
-// Represents a set of free small integer ids.
-class FreeIdSet : public CHeapObj<mtGC> {
-  enum {
-    end_of_list = UINT_MAX,
-    claimed = UINT_MAX - 1
-  };
-
-  uint _size;
-  Monitor* _mon;
-
-  uint* _ids;
-  uint _hd;
-  uint _waiters;
-  uint _claimed;
-
-public:
-  FreeIdSet(uint size, Monitor* mon);
-  ~FreeIdSet();
-
-  // Returns an unclaimed parallel id (waiting for one to be released if
-  // necessary).
-  uint claim_par_id();
-
-  void release_par_id(uint id);
-};
-
 #endif // SHARE_VM_GC_SHARED_WORKGROUP_HPP