--- old/src/hotspot/share/gc/shared/ptrQueue.hpp 2020-01-16 01:05:20.864482048 -0500 +++ new/src/hotspot/share/gc/shared/ptrQueue.hpp 2020-01-16 01:05:20.420458078 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2020, 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 @@ -210,8 +210,6 @@ return offset_of(BufferNode, _buffer); } - static BufferNode* volatile* next_ptr(BufferNode& bn) { return &bn._next; } - // Allocate a new BufferNode with the "buffer" having size elements. static BufferNode* allocate(size_t size); @@ -219,6 +217,7 @@ static void deallocate(BufferNode* node); public: + static BufferNode* volatile* next_ptr(BufferNode& bn) { return &bn._next; } typedef LockFreeStack Stack; BufferNode* next() const { return _next; }