Mercurial > hg > graal-compiler
diff src/share/vm/graal/graalRuntime.hpp @ 21515:1ab7802d35c9
Factor GraalRuntime::parse_lines out of GraalRuntime::get_service_impls
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Thu, 07 May 2015 16:00:42 +0200 |
parents | 7366593c0610 |
children | fe4a77bec5b7 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.hpp Wed May 06 17:04:06 2015 +0200 +++ b/src/share/vm/graal/graalRuntime.hpp Thu May 07 16:00:42 2015 +0200 @@ -28,6 +28,11 @@ #include "memory/allocation.hpp" #include "runtime/deoptimization.hpp" +class ParseClosure : public StackObj { + public: + virtual void do_line(char* line) = 0; +}; + class GraalRuntime: public CHeapObj<mtCompiler> { private: @@ -177,6 +182,8 @@ */ static Handle get_service_impls(KlassHandle serviceKlass, TRAPS); + static void parse_lines(char* path, ParseClosure* closure, TRAPS); + /** * Aborts the VM due to an unexpected exception. */