@@ -608,6 +608,7 @@ public static IRubyObject eid(Ruby runtime, IRubyObject arg) {
608608 return RubyProcess .egid_set (runtime .getCurrentContext (), arg );
609609 }
610610
611+ @ Deprecated (since = "10.0" )
611612 public static IRubyObject grant_privilege (IRubyObject self , IRubyObject arg ) {
612613 return grant_privilege (((RubyBasicObject ) self ).getCurrentContext (), self , arg );
613614 }
@@ -1942,13 +1943,23 @@ public static RubyFixnum spawn(ThreadContext context, IRubyObject recv, IRubyObj
19421943 asFixnum (context , ShellLauncher .runExternalWithoutWait (context .runtime , args ));
19431944 }
19441945
1945- @ JRubyMethod ( name = "exit" , optional = 1 , checkArity = false , module = true , visibility = PRIVATE )
1946+ @ Deprecated ( since = "10.0" )
19461947 public static IRubyObject exit (IRubyObject recv , IRubyObject [] args ) {
1947- return RubyKernel . exit (((RubyBasicObject ) recv ).getCurrentContext (), recv , args );
1948+ return exit (((RubyBasicObject ) recv ).getCurrentContext (), recv , args );
19481949 }
19491950
1950- @ JRubyMethod (name = "setproctitle" , module = true , visibility = PRIVATE )
1951+ @ JRubyMethod (name = "exit" , optional = 1 , checkArity = false , module = true , visibility = PRIVATE )
1952+ public static IRubyObject exit (ThreadContext context , IRubyObject recv , IRubyObject [] args ) {
1953+ return RubyKernel .exit (context , recv , args );
1954+ }
1955+
1956+ @ Deprecated (since = "10.0" )
19511957 public static IRubyObject setproctitle (IRubyObject recv , IRubyObject name ) {
1958+ return setproctitle (((RubyBasicObject ) recv ).getCurrentContext (), recv , name );
1959+ }
1960+
1961+ @ JRubyMethod (name = "setproctitle" , module = true , visibility = PRIVATE )
1962+ public static IRubyObject setproctitle (ThreadContext context , IRubyObject recv , IRubyObject name ) {
19521963 // Not possible for us to implement on most platforms, so we just noop.
19531964 name .convertToString ();
19541965
0 commit comments