8138846: Remove unused enum ConcurrentGCThread::CGC_flag_type

Reviewed-by: jwilhelm, brutisso
This commit is contained in:
Per Lidén 2015-10-06 08:05:11 +02:00
parent d0ae130dd5
commit be4747bc4d
2 changed files with 1 additions and 21 deletions

View File

@ -33,10 +33,6 @@
#include "runtime/javaCalls.hpp" #include "runtime/javaCalls.hpp"
#include "runtime/os.hpp" #include "runtime/os.hpp"
// CopyrightVersion 1.2
int ConcurrentGCThread::_CGC_flag = CGC_nil;
ConcurrentGCThread::ConcurrentGCThread() : ConcurrentGCThread::ConcurrentGCThread() :
_should_terminate(false), _has_terminated(false) { _should_terminate(false), _has_terminated(false) {
}; };

View File

@ -35,19 +35,6 @@ protected:
bool _should_terminate; bool _should_terminate;
bool _has_terminated; bool _has_terminated;
enum CGC_flag_type {
CGC_nil = 0x0,
CGC_dont_suspend = 0x1,
CGC_CGC_safepoint = 0x2,
CGC_VM_safepoint = 0x4
};
static int _CGC_flag;
static bool CGC_flag_is_set(int b) { return (_CGC_flag & b) != 0; }
static int set_CGC_flag(int b) { return _CGC_flag |= b; }
static int reset_CGC_flag(int b) { return _CGC_flag &= ~b; }
// Create and start the thread (setting it's priority high.) // Create and start the thread (setting it's priority high.)
void create_and_start(); void create_and_start();
@ -63,13 +50,10 @@ protected:
void terminate(); void terminate();
public: public:
// Constructor
ConcurrentGCThread(); ConcurrentGCThread();
~ConcurrentGCThread() {} // Exists to call NamedThread destructor.
// Tester // Tester
bool is_ConcurrentGC_thread() const { return true; } bool is_ConcurrentGC_thread() const { return true; }
}; };
// The SurrogateLockerThread is used by concurrent GC threads for // The SurrogateLockerThread is used by concurrent GC threads for