< prev index next >

src/share/vm/gc_implementation/g1/g1BlockOffsetTable.hpp

Print this page
rev 8203 : [mq]: 8073632-cleanup-translation-factor-usage

*** 1,7 **** /* ! * Copyright (c) 2001, 2014, 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) 2001, 2015, 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.
*** 177,186 **** --- 177,191 ---- static size_t compute_size(size_t mem_region_words) { size_t number_of_slots = (mem_region_words / N_words); return ReservedSpace::allocation_align_size_up(number_of_slots); } + // Returns how many bytes of the heap a single byte of the BOT corresponds to. + static size_t heap_map_factor() { + return N_bytes; + } + enum SomePublicConstants { LogN = 9, LogN_words = LogN - LogHeapWordSize, N_bytes = 1 << LogN, N_words = 1 << LogN_words
< prev index next >