Skip to content

Commit 251c641

Browse files
author
Kim Barrett
committed
8259487: Remove unused StarTask
Reviewed-by: iklam, tschatzl
1 parent 1519632 commit 251c641

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

src/hotspot/share/gc/shared/taskqueue.hpp

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -515,36 +515,6 @@ class TerminatorTerminator: public CHeapObj<mtInternal> {
515515
virtual bool should_exit_termination() = 0;
516516
};
517517

518-
// This is a container class for either an oop* or a narrowOop*.
519-
// Both are pushed onto a task queue and the consumer will test is_narrow()
520-
// to determine which should be processed.
521-
class StarTask {
522-
void* _holder; // either union oop* or narrowOop*
523-
524-
enum { COMPRESSED_OOP_MASK = 1 };
525-
526-
public:
527-
StarTask(narrowOop* p) {
528-
assert(((uintptr_t)p & COMPRESSED_OOP_MASK) == 0, "Information loss!");
529-
_holder = (void *)((uintptr_t)p | COMPRESSED_OOP_MASK);
530-
}
531-
StarTask(oop* p) {
532-
assert(((uintptr_t)p & COMPRESSED_OOP_MASK) == 0, "Information loss!");
533-
_holder = (void*)p;
534-
}
535-
StarTask() { _holder = NULL; }
536-
// Trivially copyable, for use in GenericTaskQueue.
537-
538-
operator oop*() { return (oop*)_holder; }
539-
operator narrowOop*() {
540-
return (narrowOop*)((uintptr_t)_holder & ~COMPRESSED_OOP_MASK);
541-
}
542-
543-
bool is_narrow() const {
544-
return (((uintptr_t)_holder & COMPRESSED_OOP_MASK) != 0);
545-
}
546-
};
547-
548518
class ObjArrayTask
549519
{
550520
public:

0 commit comments

Comments
 (0)