< prev index next >

src/hotspot/share/runtime/interfaceSupport.cpp

Print this page




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc/shared/collectedHeap.hpp"
  27 #include "gc/shared/collectedHeap.inline.hpp"
  28 #include "gc/shared/genCollectedHeap.hpp"
  29 #include "memory/resourceArea.hpp"
  30 #include "runtime/atomic.hpp"

  31 #include "runtime/handles.inline.hpp"
  32 #include "runtime/init.hpp"
  33 #include "runtime/interfaceSupport.inline.hpp"
  34 #include "runtime/orderAccess.inline.hpp"
  35 #include "runtime/os.inline.hpp"
  36 #include "runtime/thread.inline.hpp"
  37 #include "runtime/vframe.hpp"

  38 #include "utilities/preserveException.hpp"
  39 
  40 // Implementation of InterfaceSupport
  41 
  42 #ifdef ASSERT
  43 VMEntryWrapper::VMEntryWrapper() {
  44   if (VerifyLastFrame) {
  45     InterfaceSupport::verify_last_frame();
  46   }
  47 }
  48 
  49 VMEntryWrapper::~VMEntryWrapper() {
  50   InterfaceSupport::check_gc_alot();
  51   if (WalkStackALot) {
  52     InterfaceSupport::walk_stack();
  53   }
  54 #ifdef COMPILER2
  55   // This option is not used by Compiler 1
  56   if (StressDerivedPointers) {
  57     InterfaceSupport::stress_derived_pointers();




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc/shared/collectedHeap.hpp"
  27 #include "gc/shared/collectedHeap.inline.hpp"
  28 #include "gc/shared/genCollectedHeap.hpp"
  29 #include "memory/resourceArea.hpp"
  30 #include "runtime/atomic.hpp"
  31 #include "runtime/frame.inline.hpp"
  32 #include "runtime/handles.inline.hpp"
  33 #include "runtime/init.hpp"
  34 #include "runtime/interfaceSupport.inline.hpp"
  35 #include "runtime/orderAccess.inline.hpp"
  36 #include "runtime/os.inline.hpp"
  37 #include "runtime/thread.inline.hpp"
  38 #include "runtime/vframe.hpp"
  39 #include "runtime/vmThread.hpp"
  40 #include "utilities/preserveException.hpp"
  41 
  42 // Implementation of InterfaceSupport
  43 
  44 #ifdef ASSERT
  45 VMEntryWrapper::VMEntryWrapper() {
  46   if (VerifyLastFrame) {
  47     InterfaceSupport::verify_last_frame();
  48   }
  49 }
  50 
  51 VMEntryWrapper::~VMEntryWrapper() {
  52   InterfaceSupport::check_gc_alot();
  53   if (WalkStackALot) {
  54     InterfaceSupport::walk_stack();
  55   }
  56 #ifdef COMPILER2
  57   // This option is not used by Compiler 1
  58   if (StressDerivedPointers) {
  59     InterfaceSupport::stress_derived_pointers();


< prev index next >