diff src/share/vm/graal/graalRuntime.hpp @ 15916:6aa352b260f4

removed use of ServiceLoader in runtime initialization
author Doug Simon <doug.simon@oracle.com>
date Mon, 26 May 2014 18:55:06 +0200
parents fe608a56e3f7
children b35b1dc75ec0
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.hpp	Mon May 26 17:44:19 2014 +0200
+++ b/src/share/vm/graal/graalRuntime.hpp	Mon May 26 18:55:06 2014 +0200
@@ -73,9 +73,19 @@
    */
   static bool set_option(KlassHandle hotSpotOptionsClass, const char* name, int name_len, Handle name_handle, const char* value, TRAPS);
 
+  /**
+   * Instantiates Service object, calls its default constructor and returns it.
+   *
+   * @param name the name of a class implementing com.oracle.graal.api.runtime.Service
+   */
+  static Handle create_Service(const char* name, TRAPS);
+
  public:
 
   static void initialize_natives(JNIEnv *env, jclass c2vmClass);
+
+  static Handle get_service_impls(KlassHandle serviceKlass, TRAPS);
+
   static BufferBlob* initialize_buffer_blob();
 
   static bool parse_arguments(KlassHandle hotSpotOptionsClass, TRAPS);