src/hotspot/share/jvmci/jvmciRuntime.cpp
changeset 49982 9042ffe5b7fe
parent 49837 32ba0c867a46
child 50858 2d3e99a72541
equal deleted inserted replaced
49981:bd0a95bec96b 49982:9042ffe5b7fe
    48 #include "runtime/sharedRuntime.hpp"
    48 #include "runtime/sharedRuntime.hpp"
    49 #include "runtime/threadSMR.hpp"
    49 #include "runtime/threadSMR.hpp"
    50 #include "utilities/debug.hpp"
    50 #include "utilities/debug.hpp"
    51 #include "utilities/defaultStream.hpp"
    51 #include "utilities/defaultStream.hpp"
    52 #include "utilities/macros.hpp"
    52 #include "utilities/macros.hpp"
    53 #if INCLUDE_ALL_GCS
    53 #if INCLUDE_G1GC
    54 #include "gc/g1/g1ThreadLocalData.hpp"
    54 #include "gc/g1/g1ThreadLocalData.hpp"
    55 #endif // INCLUDE_ALL_GCS
    55 #endif // INCLUDE_G1GC
    56 
    56 
    57 #if defined(_MSC_VER)
    57 #if defined(_MSC_VER)
    58 #define strtoll _strtoi64
    58 #define strtoll _strtoi64
    59 #endif
    59 #endif
    60 
    60 
   482   if (newline) {
   482   if (newline) {
   483     tty->cr();
   483     tty->cr();
   484   }
   484   }
   485 JRT_END
   485 JRT_END
   486 
   486 
       
   487 #if INCLUDE_G1GC
       
   488 
   487 JRT_LEAF(void, JVMCIRuntime::write_barrier_pre(JavaThread* thread, oopDesc* obj))
   489 JRT_LEAF(void, JVMCIRuntime::write_barrier_pre(JavaThread* thread, oopDesc* obj))
   488 #if INCLUDE_ALL_GCS
       
   489   G1ThreadLocalData::satb_mark_queue(thread).enqueue(obj);
   490   G1ThreadLocalData::satb_mark_queue(thread).enqueue(obj);
   490 #endif // INCLUDE_ALL_GCS
       
   491 JRT_END
   491 JRT_END
   492 
   492 
   493 JRT_LEAF(void, JVMCIRuntime::write_barrier_post(JavaThread* thread, void* card_addr))
   493 JRT_LEAF(void, JVMCIRuntime::write_barrier_post(JavaThread* thread, void* card_addr))
   494 #if INCLUDE_ALL_GCS
       
   495   G1ThreadLocalData::dirty_card_queue(thread).enqueue(card_addr);
   494   G1ThreadLocalData::dirty_card_queue(thread).enqueue(card_addr);
   496 #endif // INCLUDE_ALL_GCS
   495 JRT_END
   497 JRT_END
   496 
       
   497 #endif // INCLUDE_G1GC
   498 
   498 
   499 JRT_LEAF(jboolean, JVMCIRuntime::validate_object(JavaThread* thread, oopDesc* parent, oopDesc* child))
   499 JRT_LEAF(jboolean, JVMCIRuntime::validate_object(JavaThread* thread, oopDesc* parent, oopDesc* child))
   500   bool ret = true;
   500   bool ret = true;
   501   if(!Universe::heap()->is_in_closed_subset(parent)) {
   501   if(!Universe::heap()->is_in_closed_subset(parent)) {
   502     tty->print_cr("Parent Object " INTPTR_FORMAT " not in heap", p2i(parent));
   502     tty->print_cr("Parent Object " INTPTR_FORMAT " not in heap", p2i(parent));