public class org.jruby.ext.etc.RubyEtc
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ext.etc.RubyEtc
super_class: java.lang.Object
{
private static final java.util.concurrent.atomic.AtomicBoolean iteratingPasswd;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.util.concurrent.atomic.AtomicBoolean
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:(Z)V
putstatic org.jruby.ext.etc.RubyEtc.iteratingPasswd:Ljava/util/concurrent/atomic/AtomicBoolean;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/etc/RubyEtc;
public static org.jruby.RubyModule createEtcModule(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jruby/RubyModule;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ldc "Etc"
invokevirtual org.jruby.Ruby.defineModule:(Ljava/lang/String;)Lorg/jruby/RubyModule;
astore 1
start local 1 1: aload 0
aload 1
invokevirtual org.jruby.Ruby.setEtc:(Lorg/jruby/RubyModule;)V
2: aload 1
ldc Lorg/jruby/ext/etc/RubyEtc;
invokevirtual org.jruby.RubyModule.defineAnnotatedMethods:(Ljava/lang/Class;)V
3: aload 0
invokestatic org.jruby.ext.etc.RubyEtc.definePasswdStruct:(Lorg/jruby/Ruby;)V
4: aload 0
invokestatic org.jruby.ext.etc.RubyEtc.defineGroupStruct:(Lorg/jruby/Ruby;)V
5: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 runtime Lorg/jruby/Ruby;
1 6 1 etcModule Lorg/jruby/RubyModule;
MethodParameters:
Name Flags
runtime
private static void definePasswdStruct(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: bipush 11
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
1: aload 0
ldc "Passwd"
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
dup
iconst_1
2: aload 0
ldc "name"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aastore
dup
iconst_2
3: aload 0
ldc "passwd"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aastore
dup
iconst_3
4: aload 0
ldc "uid"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aastore
dup
iconst_4
5: aload 0
ldc "gid"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aastore
dup
iconst_5
6: aload 0
ldc "gecos"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aastore
dup
bipush 6
7: aload 0
ldc "dir"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aastore
dup
bipush 7
8: aload 0
ldc "shell"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aastore
dup
bipush 8
9: aload 0
ldc "change"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aastore
dup
bipush 9
10: aload 0
ldc "uclass"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aastore
dup
bipush 10
11: aload 0
ldc "expire"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aastore
12: astore 1
start local 1 13: aload 0
aload 0
invokevirtual org.jruby.Ruby.getStructClass:()Lorg/jruby/RubyClass;
aload 1
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokestatic org.jruby.RubyStruct.newInstance:(Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.setPasswdStruct:(Lorg/jruby/RubyClass;)V
14: aload 0
invokevirtual org.jruby.Ruby.getEtc:()Lorg/jruby/RubyModule;
ldc "Passwd"
aload 0
invokevirtual org.jruby.Ruby.getPasswdStruct:()Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.RubyModule.defineConstant:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)V
15: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 runtime Lorg/jruby/Ruby;
13 16 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
runtime
private static void defineGroupStruct(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: iconst_5
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
1: aload 0
ldc "Group"
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
dup
iconst_1
2: aload 0
ldc "name"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aastore
dup
iconst_2
3: aload 0
ldc "passwd"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aastore
dup
iconst_3
4: aload 0
ldc "gid"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aastore
dup
iconst_4
5: aload 0
ldc "mem"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aastore
6: astore 1
start local 1 7: aload 0
aload 0
invokevirtual org.jruby.Ruby.getStructClass:()Lorg/jruby/RubyClass;
aload 1
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokestatic org.jruby.RubyStruct.newInstance:(Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.setGroupStruct:(Lorg/jruby/RubyClass;)V
8: aload 0
invokevirtual org.jruby.Ruby.getEtc:()Lorg/jruby/RubyModule;
ldc "Group"
aload 0
invokevirtual org.jruby.Ruby.getGroupStruct:()Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.RubyModule.defineConstant:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)V
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 runtime Lorg/jruby/Ruby;
7 10 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
runtime
private static org.jruby.runtime.builtin.IRubyObject setupPasswd(org.jruby.Ruby, jnr.posix.Passwd);
descriptor: (Lorg/jruby/Ruby;Ljnr/posix/Passwd;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: bipush 10
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
1: aload 0
aload 1
invokeinterface jnr.posix.Passwd.getLoginName:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
dup
iconst_1
2: aload 0
aload 1
invokeinterface jnr.posix.Passwd.getPassword:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
dup
iconst_2
3: aload 0
aload 1
invokeinterface jnr.posix.Passwd.getUID:()J
invokevirtual org.jruby.Ruby.newFixnum:(J)Lorg/jruby/RubyFixnum;
aastore
dup
iconst_3
4: aload 0
aload 1
invokeinterface jnr.posix.Passwd.getGID:()J
invokevirtual org.jruby.Ruby.newFixnum:(J)Lorg/jruby/RubyFixnum;
aastore
dup
iconst_4
5: aload 0
aload 1
invokeinterface jnr.posix.Passwd.getGECOS:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
dup
iconst_5
6: aload 0
aload 1
invokeinterface jnr.posix.Passwd.getHome:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
dup
bipush 6
7: aload 0
aload 1
invokeinterface jnr.posix.Passwd.getShell:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
dup
bipush 7
8: aload 0
aload 1
invokeinterface jnr.posix.Passwd.getPasswdChangeTime:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
aastore
dup
bipush 8
9: aload 0
aload 1
invokeinterface jnr.posix.Passwd.getAccessClass:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
dup
bipush 9
10: aload 0
aload 1
invokeinterface jnr.posix.Passwd.getExpire:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
aastore
11: astore 2
start local 2 12: aload 0
invokevirtual org.jruby.Ruby.getPasswdStruct:()Lorg/jruby/runtime/builtin/IRubyObject;
aload 2
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokestatic org.jruby.RubyStruct.newStruct:(Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/RubyStruct;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 runtime Lorg/jruby/Ruby;
0 13 1 passwd Ljnr/posix/Passwd;
12 13 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
runtime
passwd
private static org.jruby.runtime.builtin.IRubyObject setupGroup(org.jruby.Ruby, jnr.posix.Group);
descriptor: (Lorg/jruby/Ruby;Ljnr/posix/Group;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: iconst_4
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
1: aload 0
aload 1
invokeinterface jnr.posix.Group.getName:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
dup
iconst_1
2: aload 0
aload 1
invokeinterface jnr.posix.Group.getPassword:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
dup
iconst_2
3: aload 0
aload 1
invokeinterface jnr.posix.Group.getGID:()J
invokevirtual org.jruby.Ruby.newFixnum:(J)Lorg/jruby/RubyFixnum;
aastore
dup
iconst_3
4: aload 0
aload 1
invokeinterface jnr.posix.Group.getMembers:()[Ljava/lang/String;
invokestatic org.jruby.ext.etc.RubyEtc.intoStringArray:(Lorg/jruby/Ruby;[Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
aastore
5: astore 2
start local 2 6: aload 0
invokevirtual org.jruby.Ruby.getGroupStruct:()Lorg/jruby/runtime/builtin/IRubyObject;
aload 2
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokestatic org.jruby.RubyStruct.newStruct:(Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/RubyStruct;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 runtime Lorg/jruby/Ruby;
0 7 1 group Ljnr/posix/Group;
6 7 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
runtime
group
private static org.jruby.runtime.builtin.IRubyObject intoStringArray(org.jruby.Ruby, java.lang.String[]);
descriptor: (Lorg/jruby/Ruby;[Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
arraylength
anewarray org.jruby.runtime.builtin.IRubyObject
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 5
3: StackMap locals: org.jruby.runtime.builtin.IRubyObject[] int
StackMap stack:
aload 2
iload 3
aload 0
aload 1
iload 3
aaload
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
aload 2
arraylength
if_icmplt 3
end local 3 6: aload 0
aload 2
invokestatic org.jruby.RubyArray.newArrayMayCopy:(Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 runtime Lorg/jruby/Ruby;
0 7 1 members [Ljava/lang/String;
1 7 2 arr [Lorg/jruby/runtime/builtin/IRubyObject;
2 6 3 i I
MethodParameters:
Name Flags
runtime
members
public static synchronized org.jruby.runtime.builtin.IRubyObject getpwuid(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
astore 3
start local 3 2: aload 2
invokevirtual org.jruby.Ruby.getGlobalVariables:()Lorg/jruby/internal/runtime/GlobalVariables;
ldc "$!"
invokevirtual org.jruby.internal.runtime.GlobalVariables.get:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
start local 4 3: aload 1
arraylength
ifne 4
aload 3
invokeinterface jnr.posix.POSIX.getuid:()I
goto 5
StackMap locals: org.jruby.Ruby jnr.posix.POSIX org.jruby.runtime.builtin.IRubyObject
StackMap stack:
4: aload 1
iconst_0
aaload
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
StackMap locals:
StackMap stack: int
5: istore 5
start local 5 6: aload 3
iload 5
invokeinterface jnr.posix.POSIX.getpwuid:(I)Ljnr/posix/Passwd;
astore 6
start local 6 7: aload 6
ifnonnull 12
8: getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
ifeq 11
9: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
10: areturn
11: StackMap locals: int jnr.posix.Passwd
StackMap stack:
aload 2
new java.lang.StringBuilder
dup
ldc "can't find user for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
12: StackMap locals:
StackMap stack:
aload 2
aload 6
invokestatic org.jruby.ext.etc.RubyEtc.setupPasswd:(Lorg/jruby/Ruby;Ljnr/posix/Passwd;)Lorg/jruby/runtime/builtin/IRubyObject;
13: areturn
end local 6 end local 5 14: StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby jnr.posix.POSIX org.jruby.runtime.builtin.IRubyObject
StackMap stack: org.jruby.exceptions.RaiseException
astore 5
start local 5 15: aload 2
invokevirtual org.jruby.Ruby.getNotImplementedError:()Lorg/jruby/RubyClass;
aload 5
invokevirtual org.jruby.exceptions.RaiseException.getException:()Lorg/jruby/RubyException;
invokevirtual org.jruby.RubyClass.isInstance:(Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifeq 18
16: aload 2
invokevirtual org.jruby.Ruby.getGlobalVariables:()Lorg/jruby/internal/runtime/GlobalVariables;
ldc "$!"
aload 4
invokevirtual org.jruby.internal.runtime.GlobalVariables.set:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
17: aload 2
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
18: StackMap locals: org.jruby.exceptions.RaiseException
StackMap stack:
aload 5
athrow
end local 5 19: StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby jnr.posix.POSIX org.jruby.runtime.builtin.IRubyObject
StackMap stack: java.lang.Exception
pop
20: aload 2
invokevirtual org.jruby.Ruby.getDebug:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 22
21: aload 2
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.NOT_IMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "Etc.getpwuid is not supported by JRuby on this platform"
invokevirtual org.jruby.common.RubyWarnings.warn:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
22: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 23 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 23 2 runtime Lorg/jruby/Ruby;
2 23 3 posix Ljnr/posix/POSIX;
3 23 4 oldExc Lorg/jruby/runtime/builtin/IRubyObject;
6 14 5 uid I
7 14 6 pwd Ljnr/posix/Passwd;
15 19 5 re Lorg/jruby/exceptions/RaiseException;
Exception table:
from to target type
3 10 14 Class org.jruby.exceptions.RaiseException
11 13 14 Class org.jruby.exceptions.RaiseException
3 10 19 Class java.lang.Exception
11 13 19 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(optional = 1, module = true)
MethodParameters:
Name Flags
recv
args
public static synchronized org.jruby.runtime.builtin.IRubyObject getpwnam(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
astore 3
start local 3 2: aload 2
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
aload 3
invokeinterface jnr.posix.POSIX.getpwnam:(Ljava/lang/String;)Ljnr/posix/Passwd;
astore 4
start local 4 3: aload 4
ifnonnull 8
4: getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
ifeq 7
5: aload 2
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
6: areturn
7: StackMap locals: org.jruby.Ruby java.lang.String jnr.posix.Passwd
StackMap stack:
aload 2
new java.lang.StringBuilder
dup
ldc "can't find user for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
8: StackMap locals:
StackMap stack:
aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
aload 4
invokestatic org.jruby.ext.etc.RubyEtc.setupPasswd:(Lorg/jruby/Ruby;Ljnr/posix/Passwd;)Lorg/jruby/runtime/builtin/IRubyObject;
9: areturn
end local 4 10: StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby java.lang.String
StackMap stack: org.jruby.exceptions.RaiseException
astore 4
start local 4 11: aload 4
athrow
end local 4 12: StackMap locals:
StackMap stack: java.lang.Exception
pop
13: aload 2
invokevirtual org.jruby.Ruby.getDebug:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 15
14: aload 2
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.NOT_IMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "Etc.getpwnam is not supported by JRuby on this platform"
invokevirtual org.jruby.common.RubyWarnings.warn:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
15: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 16 1 name Lorg/jruby/runtime/builtin/IRubyObject;
1 16 2 runtime Lorg/jruby/Ruby;
2 16 3 nam Ljava/lang/String;
3 10 4 pwd Ljnr/posix/Passwd;
11 12 4 e Lorg/jruby/exceptions/RaiseException;
Exception table:
from to target type
2 6 10 Class org.jruby.exceptions.RaiseException
7 9 10 Class org.jruby.exceptions.RaiseException
2 6 12 Class java.lang.Exception
7 9 12 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(required = 1, module = true)
MethodParameters:
Name Flags
recv
name
public static synchronized org.jruby.runtime.builtin.IRubyObject passwd(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
astore 3
start local 3 2: aload 3
invokeinterface jnr.posix.POSIX.getpwent:()Ljnr/posix/Passwd;
pop
3: aload 1
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifeq 19
4: aload 2
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
astore 4
start local 4 5: getstatic org.jruby.ext.etc.RubyEtc.iteratingPasswd:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifne 7
6: aload 2
ldc "parallel passwd iteration"
invokevirtual org.jruby.Ruby.newRuntimeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
7: StackMap locals: org.jruby.Ruby jnr.posix.POSIX org.jruby.runtime.ThreadContext
StackMap stack:
aload 3
invokeinterface jnr.posix.POSIX.setpwent:()I
pop
8: goto 10
start local 5 9: StackMap locals: jnr.posix.Passwd
StackMap stack:
aload 1
aload 4
aload 2
aload 5
invokestatic org.jruby.ext.etc.RubyEtc.setupPasswd:(Lorg/jruby/Ruby;Ljnr/posix/Passwd;)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
end local 5 10: StackMap locals:
StackMap stack:
aload 3
invokeinterface jnr.posix.POSIX.getpwent:()Ljnr/posix/Passwd;
dup
astore 5
start local 5 11: ifnonnull 9
end local 5 12: goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 6
14: aload 3
invokeinterface jnr.posix.POSIX.endpwent:()I
pop
15: getstatic org.jruby.ext.etc.RubyEtc.iteratingPasswd:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
invokevirtual java.util.concurrent.atomic.AtomicBoolean.set:(Z)V
16: aload 6
athrow
17: StackMap locals:
StackMap stack:
aload 3
invokeinterface jnr.posix.POSIX.endpwent:()I
pop
18: getstatic org.jruby.ext.etc.RubyEtc.iteratingPasswd:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
invokevirtual java.util.concurrent.atomic.AtomicBoolean.set:(Z)V
end local 4 19: StackMap locals:
StackMap stack:
aload 3
invokeinterface jnr.posix.POSIX.getpwent:()Ljnr/posix/Passwd;
astore 4
start local 4 20: aload 4
ifnull 23
21: aload 2
aload 4
invokestatic org.jruby.ext.etc.RubyEtc.setupPasswd:(Lorg/jruby/Ruby;Ljnr/posix/Passwd;)Lorg/jruby/runtime/builtin/IRubyObject;
22: areturn
23: StackMap locals: jnr.posix.Passwd
StackMap stack:
aload 2
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
24: areturn
end local 4 25: StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.Block org.jruby.Ruby jnr.posix.POSIX
StackMap stack: java.lang.Exception
pop
26: aload 2
invokevirtual org.jruby.Ruby.getDebug:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 28
27: aload 2
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.NOT_IMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "Etc.passwd is not supported by JRuby on this platform"
invokevirtual org.jruby.common.RubyWarnings.warn:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
28: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 29 1 block Lorg/jruby/runtime/Block;
1 29 2 runtime Lorg/jruby/Ruby;
2 29 3 posix Ljnr/posix/POSIX;
5 19 4 context Lorg/jruby/runtime/ThreadContext;
9 10 5 pw Ljnr/posix/Passwd;
11 12 5 pw Ljnr/posix/Passwd;
20 25 4 pw Ljnr/posix/Passwd;
Exception table:
from to target type
8 13 13 any
2 22 25 Class java.lang.Exception
23 24 25 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
recv
block
public static synchronized org.jruby.runtime.builtin.IRubyObject getlogin(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 1
start local 1 1: aload 1
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
invokeinterface jnr.posix.POSIX.getlogin:()Ljava/lang/String;
astore 2
start local 2 2: aload 2
ifnull 5
3: aload 1
aload 2
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
4: areturn
5: StackMap locals: org.jruby.Ruby java.lang.String
StackMap stack:
ldc "USER"
invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
astore 2
6: aload 2
ifnull 9
7: aload 1
aload 2
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
8: areturn
9: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
10: areturn
end local 2 11: StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby
StackMap stack: java.lang.Exception
pop
12: aload 1
ldc "user.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 13 1 runtime Lorg/jruby/Ruby;
2 11 2 login Ljava/lang/String;
Exception table:
from to target type
1 4 11 Class java.lang.Exception
5 8 11 Class java.lang.Exception
9 10 11 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
recv
public static synchronized org.jruby.runtime.builtin.IRubyObject endpwent(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 1
start local 1 1: aload 1
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
invokeinterface jnr.posix.POSIX.endpwent:()I
pop
2: goto 6
StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby
StackMap stack: java.lang.Exception
3: pop
4: aload 1
invokevirtual org.jruby.Ruby.getDebug:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 6
5: aload 1
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.NOT_IMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "Etc.endpwent is not supported by JRuby on this platform"
invokevirtual org.jruby.common.RubyWarnings.warn:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 7 1 runtime Lorg/jruby/Ruby;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
recv
public static synchronized org.jruby.runtime.builtin.IRubyObject setpwent(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 1
start local 1 1: aload 1
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
invokeinterface jnr.posix.POSIX.setpwent:()I
pop
2: goto 6
StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby
StackMap stack: java.lang.Exception
3: pop
4: aload 1
invokevirtual org.jruby.Ruby.getDebug:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 6
5: aload 1
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.NOT_IMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "Etc.setpwent is not supported by JRuby on this platform"
invokevirtual org.jruby.common.RubyWarnings.warn:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 7 1 runtime Lorg/jruby/Ruby;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
recv
public static synchronized org.jruby.runtime.builtin.IRubyObject getpwent(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 1
start local 1 1: aload 1
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
invokeinterface jnr.posix.POSIX.getpwent:()Ljnr/posix/Passwd;
astore 2
start local 2 2: aload 2
ifnull 5
3: aload 1
aload 2
invokestatic org.jruby.ext.etc.RubyEtc.setupPasswd:(Lorg/jruby/Ruby;Ljnr/posix/Passwd;)Lorg/jruby/runtime/builtin/IRubyObject;
4: areturn
5: StackMap locals: org.jruby.Ruby jnr.posix.Passwd
StackMap stack:
aload 1
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
6: areturn
end local 2 7: StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby
StackMap stack: java.lang.Exception
pop
8: aload 1
invokevirtual org.jruby.Ruby.getDebug:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 10
9: aload 1
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.NOT_IMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "Etc.getpwent is not supported by JRuby on this platform"
invokevirtual org.jruby.common.RubyWarnings.warn:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
10: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 11 1 runtime Lorg/jruby/Ruby;
2 7 2 passwd Ljnr/posix/Passwd;
Exception table:
from to target type
1 4 7 Class java.lang.Exception
5 6 7 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
recv
public static synchronized org.jruby.runtime.builtin.IRubyObject getgrnam(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
astore 3
start local 3 2: aload 2
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
aload 3
invokeinterface jnr.posix.POSIX.getgrnam:(Ljava/lang/String;)Ljnr/posix/Group;
astore 4
start local 4 3: aload 4
ifnonnull 8
4: getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
ifeq 7
5: aload 2
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
6: areturn
7: StackMap locals: org.jruby.Ruby java.lang.String jnr.posix.Group
StackMap stack:
aload 2
new java.lang.StringBuilder
dup
ldc "can't find group for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
8: StackMap locals:
StackMap stack:
aload 2
aload 4
invokestatic org.jruby.ext.etc.RubyEtc.setupGroup:(Lorg/jruby/Ruby;Ljnr/posix/Group;)Lorg/jruby/runtime/builtin/IRubyObject;
9: areturn
end local 4 10: StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby java.lang.String
StackMap stack: org.jruby.exceptions.RaiseException
astore 4
start local 4 11: aload 4
athrow
end local 4 12: StackMap locals:
StackMap stack: java.lang.Exception
pop
13: aload 2
invokevirtual org.jruby.Ruby.getDebug:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 15
14: aload 2
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.NOT_IMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "Etc.getgrnam is not supported by JRuby on this platform"
invokevirtual org.jruby.common.RubyWarnings.warn:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
15: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 16 1 name Lorg/jruby/runtime/builtin/IRubyObject;
1 16 2 runtime Lorg/jruby/Ruby;
2 16 3 nam Ljava/lang/String;
3 10 4 grp Ljnr/posix/Group;
11 12 4 e Lorg/jruby/exceptions/RaiseException;
Exception table:
from to target type
2 6 10 Class org.jruby.exceptions.RaiseException
7 9 10 Class org.jruby.exceptions.RaiseException
2 6 12 Class java.lang.Exception
7 9 12 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(required = 1, module = true)
MethodParameters:
Name Flags
recv
name
public static synchronized org.jruby.runtime.builtin.IRubyObject getgrgid(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
astore 3
start local 3 2: aload 1
arraylength
ifne 3
aload 3
invokeinterface jnr.posix.POSIX.getgid:()I
goto 4
StackMap locals: org.jruby.Ruby jnr.posix.POSIX
StackMap stack:
3: aload 1
iconst_0
aaload
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
StackMap locals:
StackMap stack: int
4: istore 4
start local 4 5: aload 3
iload 4
invokeinterface jnr.posix.POSIX.getgrgid:(I)Ljnr/posix/Group;
astore 5
start local 5 6: aload 5
ifnonnull 11
7: getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
ifeq 10
8: aload 2
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
9: areturn
10: StackMap locals: int jnr.posix.Group
StackMap stack:
aload 2
new java.lang.StringBuilder
dup
ldc "can't find group for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
11: StackMap locals:
StackMap stack:
aload 2
aload 5
invokestatic org.jruby.ext.etc.RubyEtc.setupGroup:(Lorg/jruby/Ruby;Ljnr/posix/Group;)Lorg/jruby/runtime/builtin/IRubyObject;
12: areturn
end local 5 end local 4 13: StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby jnr.posix.POSIX
StackMap stack: org.jruby.exceptions.RaiseException
astore 4
start local 4 14: aload 4
athrow
end local 4 15: StackMap locals:
StackMap stack: java.lang.Exception
pop
16: aload 2
invokevirtual org.jruby.Ruby.getDebug:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 18
17: aload 2
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.NOT_IMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "Etc.getgrgid is not supported by JRuby on this platform"
invokevirtual org.jruby.common.RubyWarnings.warn:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
18: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 19 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 19 2 runtime Lorg/jruby/Ruby;
2 19 3 posix Ljnr/posix/POSIX;
5 13 4 gid I
6 13 5 gr Ljnr/posix/Group;
14 15 4 re Lorg/jruby/exceptions/RaiseException;
Exception table:
from to target type
2 9 13 Class org.jruby.exceptions.RaiseException
10 12 13 Class org.jruby.exceptions.RaiseException
2 9 15 Class java.lang.Exception
10 12 15 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(optional = 1, module = true)
MethodParameters:
Name Flags
recv
args
public static synchronized org.jruby.runtime.builtin.IRubyObject endgrent(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 1
start local 1 1: aload 1
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
invokeinterface jnr.posix.POSIX.endgrent:()I
pop
2: goto 6
StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby
StackMap stack: java.lang.Exception
3: pop
4: aload 1
invokevirtual org.jruby.Ruby.getDebug:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 6
5: aload 1
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.NOT_IMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "Etc.engrent is not supported by JRuby on this platform"
invokevirtual org.jruby.common.RubyWarnings.warn:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 7 1 runtime Lorg/jruby/Ruby;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
recv
public static synchronized org.jruby.runtime.builtin.IRubyObject setgrent(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 1
start local 1 1: aload 1
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
invokeinterface jnr.posix.POSIX.setgrent:()I
pop
2: goto 6
StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby
StackMap stack: java.lang.Exception
3: pop
4: aload 1
invokevirtual org.jruby.Ruby.getDebug:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 6
5: aload 1
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.NOT_IMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "Etc.setgrent is not supported by JRuby on this platform"
invokevirtual org.jruby.common.RubyWarnings.warn:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 7 1 runtime Lorg/jruby/Ruby;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
recv
public static synchronized org.jruby.runtime.builtin.IRubyObject group(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
astore 3
start local 3 2: aload 3
invokeinterface jnr.posix.POSIX.getgrent:()Ljnr/posix/Group;
pop
3: goto 7
StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.Block org.jruby.Ruby jnr.posix.POSIX
StackMap stack: java.lang.Exception
4: pop
5: aload 2
invokevirtual org.jruby.Ruby.getDebug:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 7
6: aload 2
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.NOT_IMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "Etc.group is not supported by JRuby on this platform"
invokevirtual org.jruby.common.RubyWarnings.warn:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
7: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifeq 26
8: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getInternalVariables:()Lorg/jruby/runtime/builtin/InternalVariables;
ldc "group_blocking"
invokeinterface org.jruby.runtime.builtin.InternalVariables.getInternalVariable:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.lang.Boolean
astore 4
start local 4 9: aload 4
ifnull 11
aload 4
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 11
10: aload 2
ldc "parallel group iteration"
invokevirtual org.jruby.Ruby.newRuntimeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
11: StackMap locals: java.lang.Boolean
StackMap stack:
aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getInternalVariables:()Lorg/jruby/runtime/builtin/InternalVariables;
ldc "group_blocking"
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokeinterface org.jruby.runtime.builtin.InternalVariables.setInternalVariable:(Ljava/lang/String;Ljava/lang/Object;)V
12: aload 2
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
astore 5
start local 5 13: aload 3
invokeinterface jnr.posix.POSIX.setgrent:()I
pop
14: goto 16
start local 6 15: StackMap locals: org.jruby.runtime.ThreadContext jnr.posix.Group
StackMap stack:
aload 1
aload 5
aload 2
aload 6
invokestatic org.jruby.ext.etc.RubyEtc.setupGroup:(Lorg/jruby/Ruby;Ljnr/posix/Group;)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
end local 6 16: StackMap locals:
StackMap stack:
aload 3
invokeinterface jnr.posix.POSIX.getgrent:()Ljnr/posix/Group;
dup
astore 6
start local 6 17: ifnonnull 15
end local 6 end local 5 18: goto 23
StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.Block org.jruby.Ruby jnr.posix.POSIX java.lang.Boolean
StackMap stack: java.lang.Throwable
19: astore 7
20: aload 3
invokeinterface jnr.posix.POSIX.endgrent:()I
pop
21: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getInternalVariables:()Lorg/jruby/runtime/builtin/InternalVariables;
ldc "group_blocking"
iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokeinterface org.jruby.runtime.builtin.InternalVariables.setInternalVariable:(Ljava/lang/String;Ljava/lang/Object;)V
22: aload 7
athrow
23: StackMap locals:
StackMap stack:
aload 3
invokeinterface jnr.posix.POSIX.endgrent:()I
pop
24: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getInternalVariables:()Lorg/jruby/runtime/builtin/InternalVariables;
ldc "group_blocking"
iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokeinterface org.jruby.runtime.builtin.InternalVariables.setInternalVariable:(Ljava/lang/String;Ljava/lang/Object;)V
end local 4 25: goto 30
26: StackMap locals:
StackMap stack:
aload 3
invokeinterface jnr.posix.POSIX.getgrent:()Ljnr/posix/Group;
astore 4
start local 4 27: aload 4
ifnull 29
28: aload 2
aload 4
invokestatic org.jruby.ext.etc.RubyEtc.setupGroup:(Lorg/jruby/Ruby;Ljnr/posix/Group;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
29: StackMap locals: jnr.posix.Group
StackMap stack:
aload 2
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 30: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 31 1 block Lorg/jruby/runtime/Block;
1 31 2 runtime Lorg/jruby/Ruby;
2 31 3 posix Ljnr/posix/POSIX;
9 25 4 blocking Ljava/lang/Boolean;
13 18 5 context Lorg/jruby/runtime/ThreadContext;
15 16 6 gr Ljnr/posix/Group;
17 18 6 gr Ljnr/posix/Group;
27 30 4 gr Ljnr/posix/Group;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
11 19 19 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
recv
block
public static synchronized org.jruby.runtime.builtin.IRubyObject getgrent(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 1
start local 1 1: ldc Lorg/jruby/ext/etc/RubyEtc;
dup
astore 3
monitorenter
2: aload 1
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
invokeinterface jnr.posix.POSIX.getgrent:()Ljnr/posix/Group;
astore 2
start local 2 3: aload 3
monitorexit
4: goto 7
end local 2 StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby top java.lang.Class
StackMap stack: java.lang.Throwable
5: aload 3
monitorexit
6: athrow
start local 2 7: StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby jnr.posix.Group
StackMap stack:
aload 2
ifnull 10
8: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
aload 2
invokestatic org.jruby.ext.etc.RubyEtc.setupGroup:(Lorg/jruby/Ruby;Ljnr/posix/Group;)Lorg/jruby/runtime/builtin/IRubyObject;
9: areturn
10: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
11: areturn
end local 2 12: StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby
StackMap stack: java.lang.Exception
pop
13: aload 1
invokevirtual org.jruby.Ruby.getDebug:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 15
14: aload 1
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.NOT_IMPLEMENTED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "Etc.getgrent is not supported by JRuby on this platform"
invokevirtual org.jruby.common.RubyWarnings.warn:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
15: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 16 1 runtime Lorg/jruby/Ruby;
3 5 2 gr Ljnr/posix/Group;
7 12 2 gr Ljnr/posix/Group;
Exception table:
from to target type
2 4 5 any
5 6 5 any
1 9 12 Class java.lang.Exception
10 11 12 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
recv
public static synchronized org.jruby.runtime.builtin.IRubyObject systmpdir(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.runtime.ThreadContext.getRuntime:()Lorg/jruby/Ruby;
astore 2
start local 2 1: ldc "java.io.tmpdir"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic org.jruby.util.ByteList.create:(Ljava/lang/CharSequence;)Lorg/jruby/util/ByteList;
astore 3
start local 3 2: getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
ifeq 5
3: ldc "CSIDL_COMMON_APPDATA"
invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 4: aload 4
ifnull 5
aload 4
invokestatic org.jruby.util.ByteList.create:(Ljava/lang/CharSequence;)Lorg/jruby/util/ByteList;
astore 3
end local 4 5: StackMap locals: org.jruby.Ruby org.jruby.util.ByteList
StackMap stack:
aload 2
aload 3
aload 2
invokevirtual org.jruby.Ruby.getDefaultExternalEncoding:()Lorg/jcodings/Encoding;
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Lorg/jruby/util/ByteList;Lorg/jcodings/Encoding;)Lorg/jruby/RubyString;
astore 4
start local 4 6: aload 4
aload 0
invokevirtual org.jruby.RubyString.untaint:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
7: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 context Lorg/jruby/runtime/ThreadContext;
0 8 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 8 2 runtime Lorg/jruby/Ruby;
2 8 3 tmp Lorg/jruby/util/ByteList;
4 5 4 commonAppData Ljava/lang/String;
6 8 4 ret Lorg/jruby/RubyString;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
context
recv
public static synchronized org.jruby.runtime.builtin.IRubyObject sysconfdir(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.runtime.ThreadContext.getRuntime:()Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
invokestatic org.jruby.ext.rbconfig.RbConfigLibrary.getSysConfDir:(Lorg/jruby/Ruby;)Ljava/lang/String;
invokestatic org.jruby.util.ByteList.create:(Ljava/lang/CharSequence;)Lorg/jruby/util/ByteList;
astore 3
start local 3 2: getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
ifeq 5
3: ldc "CSIDL_LOCAL_APPDATA"
invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 4: aload 4
ifnull 5
aload 4
invokestatic org.jruby.util.ByteList.create:(Ljava/lang/CharSequence;)Lorg/jruby/util/ByteList;
astore 3
end local 4 5: StackMap locals: org.jruby.Ruby org.jruby.util.ByteList
StackMap stack:
aload 2
aload 3
aload 2
invokevirtual org.jruby.Ruby.getDefaultExternalEncoding:()Lorg/jcodings/Encoding;
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Lorg/jruby/util/ByteList;Lorg/jcodings/Encoding;)Lorg/jruby/RubyString;
astore 4
start local 4 6: aload 4
aload 0
invokevirtual org.jruby.RubyString.untaint:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
7: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 context Lorg/jruby/runtime/ThreadContext;
0 8 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 8 2 runtime Lorg/jruby/Ruby;
2 8 3 tmp Lorg/jruby/util/ByteList;
4 5 4 localAppData Ljava/lang/String;
6 8 4 ret Lorg/jruby/RubyString;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
context
recv
public static synchronized org.jruby.runtime.builtin.IRubyObject nprocessors(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
invokevirtual java.lang.Runtime.availableProcessors:()I
istore 2
start local 2 1: aload 0
invokevirtual org.jruby.runtime.ThreadContext.getRuntime:()Lorg/jruby/Ruby;
iload 2
i2l
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 context Lorg/jruby/runtime/ThreadContext;
0 2 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 2 2 nprocs I
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
context
recv
public static synchronized org.jruby.runtime.builtin.IRubyObject uname(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
invokestatic org.jruby.RubyHash.newHash:(Lorg/jruby/Ruby;)Lorg/jruby/RubyHash;
astore 3
start local 3 2: aload 3
aload 0
3: aload 2
ldc "sysname"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
4: aload 2
ldc "os.name"
ldc "unknown"
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
5: invokevirtual org.jruby.RubyHash.op_aset:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
6: aload 3
aload 0
7: aload 2
ldc "nodename"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
8: aload 2
invokestatic java.net.InetAddress.getLocalHost:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostName:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
9: invokevirtual org.jruby.RubyHash.op_aset:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
10: goto 16
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby org.jruby.RubyHash
StackMap stack: java.net.UnknownHostException
11: pop
12: aload 3
aload 0
13: aload 2
ldc "nodename"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
14: aload 2
ldc "unknown"
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
15: invokevirtual org.jruby.RubyHash.op_aset:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
16: StackMap locals:
StackMap stack:
aload 3
aload 2
ldc "release"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aload 2
ldc "unknown"
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyHash.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
17: aload 3
aload 2
ldc "version"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aload 2
ldc "os.version"
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyHash.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
18: aload 3
aload 2
ldc "machine"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aload 2
ldc "os.arch"
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyHash.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
19: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 context Lorg/jruby/runtime/ThreadContext;
0 20 1 self Lorg/jruby/runtime/builtin/IRubyObject;
1 20 2 runtime Lorg/jruby/Ruby;
2 20 3 uname Lorg/jruby/RubyHash;
Exception table:
from to target type
6 10 11 Class java.net.UnknownHostException
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
context
self
}
SourceFile: "RubyEtc.java"
InnerClasses:
public final ID = org.jruby.common.IRubyWarnings$ID of org.jruby.common.IRubyWarnings
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyModule(name = {"Etc"})