jdk/src/jdk.attach/windows/native/libattach/VirtualMachineImpl.c
changeset 26969 ca3ea2ba7c86
parent 26721 ddeee2f1c05d
child 33653 c1ee09fe3274
equal deleted inserted replaced
26968:cd59eb37868e 26969:ca3ea2ba7c86
    90 
    90 
    91 /*
    91 /*
    92  * Code copied to target process
    92  * Code copied to target process
    93  */
    93  */
    94 #pragma check_stack (off)
    94 #pragma check_stack (off)
       
    95 /* Switch off all runtime checks (checks caused by /RTC<x>). They cause the
       
    96  * generated code to contain relative jumps to check functions which make
       
    97  * the code position dependent. */
       
    98 #pragma runtime_checks ("scu", off)
    95 DWORD WINAPI jvm_attach_thread_func(DataBlock *pData)
    99 DWORD WINAPI jvm_attach_thread_func(DataBlock *pData)
    96 {
   100 {
    97     HINSTANCE h;
   101     HINSTANCE h;
    98     EnqueueOperationFunc addr;
   102     EnqueueOperationFunc addr;
    99 
   103 
   120 
   124 
   121 /* This function marks the end of jvm_attach_thread_func. */
   125 /* This function marks the end of jvm_attach_thread_func. */
   122 void jvm_attach_thread_func_end (void) {
   126 void jvm_attach_thread_func_end (void) {
   123 }
   127 }
   124 #pragma check_stack
   128 #pragma check_stack
   125 
   129 #pragma runtime_checks ("scu", restore)
   126 
   130 
   127 /*
   131 /*
   128  * Class:     sun_tools_attach_VirtualMachineImpl
   132  * Class:     sun_tools_attach_VirtualMachineImpl
   129  * Method:    init
   133  * Method:    init
   130  * Signature: ()V
   134  * Signature: ()V