|
1 | 1 | /* |
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. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | 4 | * |
5 | 5 | * This code is free software; you can redistribute it and/or modify it |
@@ -515,36 +515,6 @@ class TerminatorTerminator: public CHeapObj<mtInternal> { |
515 | 515 | virtual bool should_exit_termination() = 0; |
516 | 516 | }; |
517 | 517 |
|
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 | | - |
548 | 518 | class ObjArrayTask |
549 | 519 | { |
550 | 520 | public: |
|
0 commit comments