From 011f5a5478fcd6f446f02822ad00af5ef035ec12 Mon Sep 17 00:00:00 2001 From: Leo Korinth Date: Mon, 22 Feb 2021 11:31:40 +0000 Subject: [PATCH] 8261799: Remove unnecessary cast in psParallelCompact.hpp Reviewed-by: ayang, stefank --- src/hotspot/share/gc/parallel/psParallelCompact.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/gc/parallel/psParallelCompact.hpp b/src/hotspot/share/gc/parallel/psParallelCompact.hpp index c14dffb2334..8bff20e6d80 100644 --- a/src/hotspot/share/gc/parallel/psParallelCompact.hpp +++ b/src/hotspot/share/gc/parallel/psParallelCompact.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2021, 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 @@ -1144,7 +1144,7 @@ class PSParallelCompact : AllStatic { static bool initialize(); // Closure accessors - static BoolObjectClosure* is_alive_closure() { return (BoolObjectClosure*)&_is_alive_closure; } + static BoolObjectClosure* is_alive_closure() { return &_is_alive_closure; } // Public accessors static elapsedTimer* accumulated_time() { return &_accumulated_time; }