< prev index next >

src/share/vm/gc/shared/space.inline.hpp

Print this page
rev 9978 : 8146395: Add inline qualifier in oop.hpp and fix inlining in gc files
Summary: Fix remaining issues after 8146401. Also fix windows VS2010 linkage problem (g1OopClosures.hpp).
Reviewed-by: stefank, mgerdin

*** 1,7 **** /* ! * Copyright (c) 2000, 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. --- 1,7 ---- /* ! * Copyright (c) 2000, 2016, 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.
*** 70,79 **** --- 70,83 ---- inline HeapWord* OffsetTableContigSpace::block_start_const(const void* p) const { return _offsets.block_start(p); } + size_t CompactibleSpace::obj_size(const HeapWord* addr) const { + return oop(addr)->size(); + } + template <class SpaceType> inline void CompactibleSpace::scan_and_forward(SpaceType* space, CompactPoint* cp) { // Compute the new addresses for the live objects and store it in the mark // Used by universe::mark_sweep_phase2() HeapWord* compact_top; // This is where we are currently compacting to.
*** 329,334 **** --- 333,343 ---- if (!was_empty) space->clear(SpaceDecorator::Mangle); } else { if (ZapUnusedHeapArea) space->mangle_unused_area(); } } + + size_t ContiguousSpace::scanned_block_size(const HeapWord* addr) const { + return oop(addr)->size(); + } + #endif // SHARE_VM_GC_SHARED_SPACE_INLINE_HPP
< prev index next >