--- old/share/gc/parallel/psOldGen.hpp 2018-06-15 09:47:38.842912466 -0700 +++ new/share/gc/parallel/psOldGen.hpp 2018-06-15 09:47:38.814912465 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2018, 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 @@ -59,6 +59,9 @@ const size_t _min_gen_size; const size_t _max_gen_size; + // NVDIMM handle to expand/shrink old gen on NVDIMM. + int _nvdimm_fd; + // Used when initializing the _name field. static inline const char* select_name(); @@ -137,7 +140,7 @@ MemRegion reserved() const { return _reserved; } virtual size_t max_gen_size() { return _max_gen_size; } size_t min_gen_size() { return _min_gen_size; } - + int nvdimm_fd() { return _nvdimm_fd; } // Returns limit on the maximum size of the generation. This // is the same as _max_gen_size for PSOldGen but need not be // for a derived class. @@ -218,6 +221,8 @@ // Printing support virtual const char* name() const { return _name; } + // set up fd for NVDIMM + void setup_fd(int fd) {_nvdimm_fd = fd; } // Debugging support // Save the tops of all spaces for later use during mangling. void record_spaces_top() PRODUCT_RETURN;