< prev index next >

src/hotspot/share/gc/parallel/adjoiningGenerations.cpp

8221260: Initialize more class members on construction, remove some unused ones
Reviewed-by:

*** 1,7 **** /* ! * Copyright (c) 2003, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2003, 2019, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. ***************
*** 117,127 **** _old_gen->initialize(old_rs, alignment, "old", 1); assert(old_gen()->gen_size_limit() == old_rs.size(), "Consistency check"); } } ! AdjoiningGenerations::AdjoiningGenerations() { } size_t AdjoiningGenerations::reserved_byte_size() { return virtual_spaces()->reserved_space().size(); } --- 117,127 ---- _old_gen->initialize(old_rs, alignment, "old", 1); assert(old_gen()->gen_size_limit() == old_rs.size(), "Consistency check"); } } ! AdjoiningGenerations::AdjoiningGenerations(): _young_gen(NULL), _old_gen(NULL), _virtual_spaces(NULL) { } size_t AdjoiningGenerations::reserved_byte_size() { return virtual_spaces()->reserved_space().size(); }
< prev index next >