hotspot/src/share/vm/prims/whitebox.cpp
changeset 25959 6c11a6272b60
parent 25716 fc9bd7814b10
child 25960 729cd80956ae
equal deleted inserted replaced
25958:8dc85547d6d6 25959:6c11a6272b60
   595     return longBox(thread, env, result);
   595     return longBox(thread, env, result);
   596   }
   596   }
   597   return NULL;
   597   return NULL;
   598 WB_END
   598 WB_END
   599 
   599 
       
   600 WB_ENTRY(jobject, WB_GetSizeTVMFlag(JNIEnv* env, jobject o, jstring name))
       
   601   uintx result;
       
   602   if (GetVMFlag <size_t> (thread, env, name, &result, &CommandLineFlags::size_tAt)) {
       
   603     ThreadToNativeFromVM ttnfv(thread);   // can't be in VM when we call JNI
       
   604     return longBox(thread, env, result);
       
   605   }
       
   606   return NULL;
       
   607 WB_END
       
   608 
   600 WB_ENTRY(jobject, WB_GetDoubleVMFlag(JNIEnv* env, jobject o, jstring name))
   609 WB_ENTRY(jobject, WB_GetDoubleVMFlag(JNIEnv* env, jobject o, jstring name))
   601   double result;
   610   double result;
   602   if (GetVMFlag <double> (thread, env, name, &result, &CommandLineFlags::doubleAt)) {
   611   if (GetVMFlag <double> (thread, env, name, &result, &CommandLineFlags::doubleAt)) {
   603     ThreadToNativeFromVM ttnfv(thread);   // can't be in VM when we call JNI
   612     ThreadToNativeFromVM ttnfv(thread);   // can't be in VM when we call JNI
   604     return doubleBox(thread, env, result);
   613     return doubleBox(thread, env, result);
   633 WB_END
   642 WB_END
   634 
   643 
   635 WB_ENTRY(void, WB_SetUint64VMFlag(JNIEnv* env, jobject o, jstring name, jlong value))
   644 WB_ENTRY(void, WB_SetUint64VMFlag(JNIEnv* env, jobject o, jstring name, jlong value))
   636   uint64_t result = value;
   645   uint64_t result = value;
   637   SetVMFlag <uint64_t> (thread, env, name, &result, &CommandLineFlags::uint64_tAtPut);
   646   SetVMFlag <uint64_t> (thread, env, name, &result, &CommandLineFlags::uint64_tAtPut);
       
   647 WB_END
       
   648 
       
   649 WB_ENTRY(void, WB_SetSizeTVMFlag(JNIEnv* env, jobject o, jstring name, jlong value))
       
   650   size_t result = value;
       
   651   SetVMFlag <size_t> (thread, env, name, &result, &CommandLineFlags::size_tAtPut);
   638 WB_END
   652 WB_END
   639 
   653 
   640 WB_ENTRY(void, WB_SetDoubleVMFlag(JNIEnv* env, jobject o, jstring name, jdouble value))
   654 WB_ENTRY(void, WB_SetDoubleVMFlag(JNIEnv* env, jobject o, jstring name, jdouble value))
   641   double result = value;
   655   double result = value;
   642   SetVMFlag <double> (thread, env, name, &result, &CommandLineFlags::doubleAtPut);
   656   SetVMFlag <double> (thread, env, name, &result, &CommandLineFlags::doubleAtPut);
   878       CC"(Ljava/lang/reflect/Executable;)V",          (void*)&WB_ClearMethodState},
   892       CC"(Ljava/lang/reflect/Executable;)V",          (void*)&WB_ClearMethodState},
   879   {CC"setBooleanVMFlag",   CC"(Ljava/lang/String;Z)V",(void*)&WB_SetBooleanVMFlag},
   893   {CC"setBooleanVMFlag",   CC"(Ljava/lang/String;Z)V",(void*)&WB_SetBooleanVMFlag},
   880   {CC"setIntxVMFlag",      CC"(Ljava/lang/String;J)V",(void*)&WB_SetIntxVMFlag},
   894   {CC"setIntxVMFlag",      CC"(Ljava/lang/String;J)V",(void*)&WB_SetIntxVMFlag},
   881   {CC"setUintxVMFlag",     CC"(Ljava/lang/String;J)V",(void*)&WB_SetUintxVMFlag},
   895   {CC"setUintxVMFlag",     CC"(Ljava/lang/String;J)V",(void*)&WB_SetUintxVMFlag},
   882   {CC"setUint64VMFlag",    CC"(Ljava/lang/String;J)V",(void*)&WB_SetUint64VMFlag},
   896   {CC"setUint64VMFlag",    CC"(Ljava/lang/String;J)V",(void*)&WB_SetUint64VMFlag},
       
   897   {CC"setSizeTVMFlag",     CC"(Ljava/lang/String;J)V",(void*)&WB_SetSizeTVMFlag},
   883   {CC"setDoubleVMFlag",    CC"(Ljava/lang/String;D)V",(void*)&WB_SetDoubleVMFlag},
   898   {CC"setDoubleVMFlag",    CC"(Ljava/lang/String;D)V",(void*)&WB_SetDoubleVMFlag},
   884   {CC"setStringVMFlag",    CC"(Ljava/lang/String;Ljava/lang/String;)V",
   899   {CC"setStringVMFlag",    CC"(Ljava/lang/String;Ljava/lang/String;)V",
   885                                                       (void*)&WB_SetStringVMFlag},
   900                                                       (void*)&WB_SetStringVMFlag},
   886   {CC"getBooleanVMFlag",   CC"(Ljava/lang/String;)Ljava/lang/Boolean;",
   901   {CC"getBooleanVMFlag",   CC"(Ljava/lang/String;)Ljava/lang/Boolean;",
   887                                                       (void*)&WB_GetBooleanVMFlag},
   902                                                       (void*)&WB_GetBooleanVMFlag},
   889                                                       (void*)&WB_GetIntxVMFlag},
   904                                                       (void*)&WB_GetIntxVMFlag},
   890   {CC"getUintxVMFlag",     CC"(Ljava/lang/String;)Ljava/lang/Long;",
   905   {CC"getUintxVMFlag",     CC"(Ljava/lang/String;)Ljava/lang/Long;",
   891                                                       (void*)&WB_GetUintxVMFlag},
   906                                                       (void*)&WB_GetUintxVMFlag},
   892   {CC"getUint64VMFlag",    CC"(Ljava/lang/String;)Ljava/lang/Long;",
   907   {CC"getUint64VMFlag",    CC"(Ljava/lang/String;)Ljava/lang/Long;",
   893                                                       (void*)&WB_GetUint64VMFlag},
   908                                                       (void*)&WB_GetUint64VMFlag},
       
   909   {CC"getSizeTVMFlag",     CC"(Ljava/lang/String;)Ljava/lang/Long;",
       
   910                                                       (void*)&WB_GetSizeTVMFlag},
   894   {CC"getDoubleVMFlag",    CC"(Ljava/lang/String;)Ljava/lang/Double;",
   911   {CC"getDoubleVMFlag",    CC"(Ljava/lang/String;)Ljava/lang/Double;",
   895                                                       (void*)&WB_GetDoubleVMFlag},
   912                                                       (void*)&WB_GetDoubleVMFlag},
   896   {CC"getStringVMFlag",    CC"(Ljava/lang/String;)Ljava/lang/String;",
   913   {CC"getStringVMFlag",    CC"(Ljava/lang/String;)Ljava/lang/String;",
   897                                                       (void*)&WB_GetStringVMFlag},
   914                                                       (void*)&WB_GetStringVMFlag},
   898   {CC"isInStringTable",    CC"(Ljava/lang/String;)Z", (void*)&WB_IsInStringTable  },
   915   {CC"isInStringTable",    CC"(Ljava/lang/String;)Z", (void*)&WB_IsInStringTable  },