Skip to content

Commit 011f5a5

Browse files
committed
8261799: Remove unnecessary cast in psParallelCompact.hpp
Reviewed-by: ayang, stefank
1 parent e9d7c07 commit 011f5a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/gc/parallel/psParallelCompact.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 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
@@ -1144,7 +1144,7 @@ class PSParallelCompact : AllStatic {
11441144
static bool initialize();
11451145

11461146
// Closure accessors
1147-
static BoolObjectClosure* is_alive_closure() { return (BoolObjectClosure*)&_is_alive_closure; }
1147+
static BoolObjectClosure* is_alive_closure() { return &_is_alive_closure; }
11481148

11491149
// Public accessors
11501150
static elapsedTimer* accumulated_time() { return &_accumulated_time; }

0 commit comments

Comments
 (0)