src/share/vm/oops/instanceRefKlass.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2009, 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) 1997, 2010, 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.
*** 20,31 **** * or visit www.oracle.com if you need additional information or have any * questions. * */ ! # include "incls/_precompiled.incl" ! # include "incls/_instanceRefKlass.cpp.incl" template <class T> static void specialized_oop_follow_contents(instanceRefKlass* ref, oop obj) { T* referent_addr = (T*)java_lang_ref_Reference::referent_addr(obj); T heap_oop = oopDesc::load_heap_oop(referent_addr); --- 20,50 ---- * or visit www.oracle.com if you need additional information or have any * questions. * */ ! #include "precompiled.hpp" ! #include "classfile/javaClasses.hpp" ! #include "classfile/systemDictionary.hpp" ! #include "gc_implementation/shared/markSweep.inline.hpp" ! #include "gc_interface/collectedHeap.hpp" ! #include "gc_interface/collectedHeap.inline.hpp" ! #include "memory/genCollectedHeap.hpp" ! #include "memory/genOopClosures.inline.hpp" ! #include "oops/instanceRefKlass.hpp" ! #include "oops/oop.inline.hpp" ! #include "utilities/preserveException.hpp" ! #ifndef SERIALGC ! #include "gc_implementation/g1/g1CollectedHeap.inline.hpp" ! #include "gc_implementation/g1/g1OopClosures.inline.hpp" ! #include "gc_implementation/g1/g1RemSet.inline.hpp" ! #include "gc_implementation/g1/heapRegionSeq.inline.hpp" ! #include "gc_implementation/parNew/parOopClosures.inline.hpp" ! #include "gc_implementation/parallelScavenge/psPromotionManager.inline.hpp" ! #include "gc_implementation/parallelScavenge/psScavenge.inline.hpp" ! #include "oops/oop.pcgc.inline.hpp" ! #endif template <class T> static void specialized_oop_follow_contents(instanceRefKlass* ref, oop obj) { T* referent_addr = (T*)java_lang_ref_Reference::referent_addr(obj); T heap_oop = oopDesc::load_heap_oop(referent_addr);