hotspot/src/share/vm/prims/jvmtiEnv.cpp
changeset 36508 5f9eee6b383b
parent 35917 463d67f86eaa
child 37179 4dbcb3a642d2
equal deleted inserted replaced
36507:c80f6ecb0bb3 36508:5f9eee6b383b
   185   }
   185   }
   186   return JVMTI_ERROR_NONE;
   186   return JVMTI_ERROR_NONE;
   187 } /* end GetThreadLocalStorage */
   187 } /* end GetThreadLocalStorage */
   188 
   188 
   189   //
   189   //
       
   190   // Module functions
       
   191   //
       
   192 
       
   193 // module_count_ptr - pre-checked for NULL
       
   194 // modules_ptr - pre-checked for NULL
       
   195 jvmtiError
       
   196 JvmtiEnv::GetAllModules(jint* module_count_ptr, jobject** modules_ptr) {
       
   197     JvmtiModuleClosure jmc;
       
   198 
       
   199     return jmc.get_all_modules(this, module_count_ptr, modules_ptr);
       
   200 } /* end GetAllModules */
       
   201 
       
   202 
       
   203   //
   190   // Class functions
   204   // Class functions
   191   //
   205   //
   192 
   206 
   193 // class_count_ptr - pre-checked for NULL
   207 // class_count_ptr - pre-checked for NULL
   194 // classes_ptr - pre-checked for NULL
   208 // classes_ptr - pre-checked for NULL
   561   //
   575   //
   562 
   576 
   563 // phase_ptr - pre-checked for NULL
   577 // phase_ptr - pre-checked for NULL
   564 jvmtiError
   578 jvmtiError
   565 JvmtiEnv::GetPhase(jvmtiPhase* phase_ptr) {
   579 JvmtiEnv::GetPhase(jvmtiPhase* phase_ptr) {
   566   *phase_ptr = get_phase();
   580   *phase_ptr = phase();
   567   return JVMTI_ERROR_NONE;
   581   return JVMTI_ERROR_NONE;
   568 } /* end GetPhase */
   582 } /* end GetPhase */
   569 
   583 
   570 
   584 
   571 jvmtiError
   585 jvmtiError
  3487 JvmtiEnv::SetSystemProperty(const char* property, const char* value_ptr) {
  3501 JvmtiEnv::SetSystemProperty(const char* property, const char* value_ptr) {
  3488   jvmtiError err =JVMTI_ERROR_NOT_AVAILABLE;
  3502   jvmtiError err =JVMTI_ERROR_NOT_AVAILABLE;
  3489 
  3503 
  3490   for (SystemProperty* p = Arguments::system_properties(); p != NULL; p = p->next()) {
  3504   for (SystemProperty* p = Arguments::system_properties(); p != NULL; p = p->next()) {
  3491     if (strcmp(property, p->key()) == 0) {
  3505     if (strcmp(property, p->key()) == 0) {
  3492       if (p->set_value(value_ptr)) {
  3506       if (p->set_writeable_value(value_ptr)) {
  3493         err =  JVMTI_ERROR_NONE;
  3507         err =  JVMTI_ERROR_NONE;
  3494       }
  3508       }
  3495     }
  3509     }
  3496   }
  3510   }
  3497   return err;
  3511   return err;