public class org.jruby.util.OSEnvironment
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.jruby.util.OSEnvironment
  super_class: java.lang.Object
{
  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.jruby.util.OSEnvironment this
         0: .line 42
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.jruby.util.OSEnvironment this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/jruby/util/OSEnvironment;

  public static java.util.Map<org.jruby.RubyString, org.jruby.RubyString> environmentVariableMap(org.jruby.Ruby);
    descriptor: (Lorg/jruby/Ruby;)Ljava/util/Map;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // org.jruby.Ruby runtime
         0: .line 51
            aload 0 /* runtime */
            invokevirtual org.jruby.Ruby.getInstanceConfig:()Lorg/jruby/RubyInstanceConfig;
            invokevirtual org.jruby.RubyInstanceConfig.getEnvironment:()Ljava/util/Map;
            astore 1 /* env */
        start local 1 // java.util.Map env
         1: .line 52
            aload 1 /* env */
            ifnull 2
            aload 0 /* runtime */
            aload 1 /* env */
            invokestatic org.jruby.util.OSEnvironment.asMapOfRubyStrings:(Lorg/jruby/Ruby;Ljava/util/Map;)Ljava/util/Map;
            areturn
         2: .line 54
      StackMap locals: java.util.Map
      StackMap stack:
            invokestatic org.jruby.Ruby.isSecurityRestricted:()Z
            ifeq 3
            invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
            areturn
         3: .line 56
      StackMap locals:
      StackMap stack:
            aload 0 /* runtime */
            invokestatic java.lang.System.getenv:()Ljava/util/Map;
            invokestatic org.jruby.util.OSEnvironment.asMapOfRubyStrings:(Lorg/jruby/Ruby;Ljava/util/Map;)Ljava/util/Map;
            areturn
        end local 1 // java.util.Map env
        end local 0 // org.jruby.Ruby runtime
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    4     0  runtime  Lorg/jruby/Ruby;
            1    4     1      env  Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
    Signature: (Lorg/jruby/Ruby;)Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;
    MethodParameters:
         Name  Flags
      runtime  

  public java.util.Map<org.jruby.RubyString, org.jruby.RubyString> getEnvironmentVariableMap(org.jruby.Ruby);
    descriptor: (Lorg/jruby/Ruby;)Ljava/util/Map;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // org.jruby.util.OSEnvironment this
        start local 1 // org.jruby.Ruby runtime
         0: .line 60
            aload 1 /* runtime */
            invokestatic org.jruby.util.OSEnvironment.environmentVariableMap:(Lorg/jruby/Ruby;)Ljava/util/Map;
            astore 2 /* envMap */
        start local 2 // java.util.Map envMap
         1: .line 61
            aload 2 /* envMap */
            getstatic java.util.Collections.EMPTY_MAP:Ljava/util/Map;
            if_acmpne 2
            new java.util.HashMap
            dup
            iconst_4
            invokespecial java.util.HashMap.<init>:(I)V
            goto 3
      StackMap locals: java.util.Map
      StackMap stack:
         2: aload 2 /* envMap */
      StackMap locals:
      StackMap stack: java.util.Map
         3: areturn
        end local 2 // java.util.Map envMap
        end local 1 // org.jruby.Ruby runtime
        end local 0 // org.jruby.util.OSEnvironment this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    4     0     this  Lorg/jruby/util/OSEnvironment;
            0    4     1  runtime  Lorg/jruby/Ruby;
            1    4     2   envMap  Ljava/util/Map;
    Signature: (Lorg/jruby/Ruby;)Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;
    MethodParameters:
         Name  Flags
      runtime  

  public static java.util.Map<java.lang.String, java.lang.String> propertiesToStringMap(java.util.Properties);
    descriptor: (Ljava/util/Properties;)Ljava/util/Map;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=4, args_size=1
        start local 0 // java.util.Properties properties
         0: .line 65
            new java.util.HashMap
            dup
            invokespecial java.util.HashMap.<init>:()V
            astore 1 /* map */
        start local 1 // java.util.Map map
         1: .line 66
            aload 0 /* properties */
            invokevirtual java.util.Properties.entrySet:()Ljava/util/Set;
            invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
            astore 3
            goto 5
      StackMap locals: java.util.Properties java.util.Map top java.util.Iterator
      StackMap stack:
         2: aload 3
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.util.Map$Entry
            astore 2 /* entry */
        start local 2 // java.util.Map$Entry entry
         3: .line 67
            aload 2 /* entry */
            invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
            instanceof java.lang.String
            ifeq 5
            aload 2 /* entry */
            invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
            instanceof java.lang.String
            ifeq 5
         4: .line 68
            aload 1 /* map */
            aload 2 /* entry */
            invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
            checkcast java.lang.String
            aload 2 /* entry */
            invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
            checkcast java.lang.String
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
        end local 2 // java.util.Map$Entry entry
         5: .line 66
      StackMap locals:
      StackMap stack:
            aload 3
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 2
         6: .line 71
            aload 1 /* map */
            areturn
        end local 1 // java.util.Map map
        end local 0 // java.util.Properties properties
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    7     0  properties  Ljava/util/Properties;
            1    7     1         map  Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
            3    5     2       entry  Ljava/util/Map$Entry<Ljava/lang/Object;Ljava/lang/Object;>;
    Signature: (Ljava/util/Properties;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
    MethodParameters:
            Name  Flags
      properties  

  public static java.util.Map<org.jruby.RubyString, org.jruby.RubyString> systemPropertiesMap(org.jruby.Ruby);
    descriptor: (Lorg/jruby/Ruby;)Ljava/util/Map;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.jruby.Ruby runtime
         0: .line 80
            invokestatic org.jruby.Ruby.isSecurityRestricted:()Z
            ifeq 1
            invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
            areturn
         1: .line 81
      StackMap locals:
      StackMap stack:
            aload 0 /* runtime */
            invokestatic java.lang.System.getProperties:()Ljava/util/Properties;
            invokevirtual java.util.Properties.clone:()Ljava/lang/Object;
            checkcast java.util.Properties
            invokestatic org.jruby.util.OSEnvironment.asMapOfRubyStrings:(Lorg/jruby/Ruby;Ljava/util/Map;)Ljava/util/Map;
            areturn
        end local 0 // org.jruby.Ruby runtime
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    2     0  runtime  Lorg/jruby/Ruby;
    Signature: (Lorg/jruby/Ruby;)Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;
    MethodParameters:
         Name  Flags
      runtime  

  public java.util.Map<org.jruby.RubyString, org.jruby.RubyString> getSystemPropertiesMap(org.jruby.Ruby);
    descriptor: (Lorg/jruby/Ruby;)Ljava/util/Map;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // org.jruby.util.OSEnvironment this
        start local 1 // org.jruby.Ruby runtime
         0: .line 85
            aload 1 /* runtime */
            invokestatic org.jruby.util.OSEnvironment.systemPropertiesMap:(Lorg/jruby/Ruby;)Ljava/util/Map;
            astore 2 /* sysMap */
        start local 2 // java.util.Map sysMap
         1: .line 86
            aload 2 /* sysMap */
            getstatic java.util.Collections.EMPTY_MAP:Ljava/util/Map;
            if_acmpne 2
            new java.util.HashMap
            dup
            iconst_4
            invokespecial java.util.HashMap.<init>:(I)V
            goto 3
      StackMap locals: java.util.Map
      StackMap stack:
         2: aload 2 /* sysMap */
      StackMap locals:
      StackMap stack: java.util.Map
         3: areturn
        end local 2 // java.util.Map sysMap
        end local 1 // org.jruby.Ruby runtime
        end local 0 // org.jruby.util.OSEnvironment this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    4     0     this  Lorg/jruby/util/OSEnvironment;
            0    4     1  runtime  Lorg/jruby/Ruby;
            1    4     2   sysMap  Ljava/util/Map;
    Signature: (Lorg/jruby/Ruby;)Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;
    MethodParameters:
         Name  Flags
      runtime  

  private static java.util.Map<org.jruby.RubyString, org.jruby.RubyString> asMapOfRubyStrings(org.jruby.Ruby, java.util.Map<?, ?>);
    descriptor: (Lorg/jruby/Ruby;Ljava/util/Map;)Ljava/util/Map;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=6, locals=9, args_size=2
        start local 0 // org.jruby.Ruby runtime
        start local 1 // java.util.Map map
         0: .line 91
            new java.util.HashMap
            dup
            aload 1 /* map */
            invokeinterface java.util.Map.size:()I
            iconst_2
            iadd
            invokespecial java.util.HashMap.<init>:(I)V
            astore 2 /* rubyMap */
        start local 2 // java.util.Map rubyMap
         1: .line 92
            aload 0 /* runtime */
            invokevirtual org.jruby.Ruby.getEncodingService:()Lorg/jruby/runtime/encoding/EncodingService;
            invokevirtual org.jruby.runtime.encoding.EncodingService.getLocaleEncoding:()Lorg/jcodings/Encoding;
            astore 3 /* keyEncoding */
        start local 3 // org.jcodings.Encoding keyEncoding
         2: .line 95
            getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
            ifeq 11
         3: .line 97
            ldc "user.home"
            invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            astore 4 /* home */
        start local 4 // java.lang.String home
         4: .line 98
            ldc "user.name"
            invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            astore 5 /* user */
        start local 5 // java.lang.String user
         5: .line 99
            aload 0 /* runtime */
            aload 2 /* rubyMap */
            ldc "HOME"
            aload 3 /* keyEncoding */
            aload 4 /* home */
            ifnonnull 6
            ldc "/"
            goto 7
      StackMap locals: org.jruby.Ruby java.util.Map java.util.Map org.jcodings.Encoding java.lang.String java.lang.String
      StackMap stack: org.jruby.Ruby java.util.Map java.lang.String org.jcodings.Encoding
         6: aload 4 /* home */
      StackMap locals: org.jruby.Ruby java.util.Map java.util.Map org.jcodings.Encoding java.lang.String java.lang.String
      StackMap stack: org.jruby.Ruby java.util.Map java.lang.String org.jcodings.Encoding java.lang.String
         7: aload 3 /* keyEncoding */
            invokestatic org.jruby.util.OSEnvironment.putRubyKeyValuePair:(Lorg/jruby/Ruby;Ljava/util/Map;Ljava/lang/String;Lorg/jcodings/Encoding;Ljava/lang/String;Lorg/jcodings/Encoding;)V
         8: .line 100
            aload 0 /* runtime */
            aload 2 /* rubyMap */
            ldc "USER"
            aload 3 /* keyEncoding */
            aload 5 /* user */
            ifnonnull 9
            ldc ""
            goto 10
      StackMap locals: org.jruby.Ruby java.util.Map java.util.Map org.jcodings.Encoding java.lang.String java.lang.String
      StackMap stack: org.jruby.Ruby java.util.Map java.lang.String org.jcodings.Encoding
         9: aload 5 /* user */
      StackMap locals: org.jruby.Ruby java.util.Map java.util.Map org.jcodings.Encoding java.lang.String java.lang.String
      StackMap stack: org.jruby.Ruby java.util.Map java.lang.String org.jcodings.Encoding java.lang.String
        10: aload 3 /* keyEncoding */
            invokestatic org.jruby.util.OSEnvironment.putRubyKeyValuePair:(Lorg/jruby/Ruby;Ljava/util/Map;Ljava/lang/String;Lorg/jcodings/Encoding;Ljava/lang/String;Lorg/jcodings/Encoding;)V
        end local 5 // java.lang.String user
        end local 4 // java.lang.String home
        11: .line 103
      StackMap locals:
      StackMap stack:
            aload 1 /* map */
            invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
            invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
            astore 5
            goto 25
      StackMap locals: org.jruby.Ruby java.util.Map java.util.Map org.jcodings.Encoding top java.util.Iterator
      StackMap stack:
        12: aload 5
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.util.Map$Entry
            astore 4 /* entry */
        start local 4 // java.util.Map$Entry entry
        13: .line 104
            aload 4 /* entry */
            invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
            astore 6 /* val */
        start local 6 // java.lang.Object val
        14: .line 106
            aload 6 /* val */
            instanceof java.lang.String
            ifne 15
            goto 25
        15: .line 107
      StackMap locals: org.jruby.Ruby java.util.Map java.util.Map org.jcodings.Encoding java.util.Map$Entry java.util.Iterator java.lang.Object
      StackMap stack:
            aload 6 /* val */
            checkcast java.lang.String
            astore 7 /* key */
        start local 7 // java.lang.String key
        16: .line 109
            getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
            ifeq 17
            aload 7 /* key */
            bipush 61
            invokestatic org.jruby.util.StringSupport.startsWith:(Ljava/lang/CharSequence;C)Z
            ifeq 17
            goto 25
        17: .line 111
      StackMap locals: java.lang.String
      StackMap stack:
            aload 4 /* entry */
            invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
            astore 6 /* val */
        18: .line 112
            aload 6 /* val */
            instanceof java.lang.String
            ifne 19
            goto 25
        19: .line 115
      StackMap locals:
      StackMap stack:
            aload 3 /* keyEncoding */
            astore 8 /* valueEncoding */
        start local 8 // org.jcodings.Encoding valueEncoding
        20: .line 116
            getstatic org.jruby.platform.Platform.IS_WINDOWS:Z
            ifeq 22
        21: .line 117
            aload 7 /* key */
            ldc "PATH"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 24
            goto 23
        22: .line 118
      StackMap locals: org.jcodings.Encoding
      StackMap stack:
            aload 7 /* key */
            ldc "PATH"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 24
        23: .line 119
      StackMap locals:
      StackMap stack:
            aload 0 /* runtime */
            invokevirtual org.jruby.Ruby.getEncodingService:()Lorg/jruby/runtime/encoding/EncodingService;
            invokevirtual org.jruby.runtime.encoding.EncodingService.getFileSystemEncoding:()Lorg/jcodings/Encoding;
            astore 8 /* valueEncoding */
        24: .line 122
      StackMap locals:
      StackMap stack:
            aload 0 /* runtime */
            aload 2 /* rubyMap */
            aload 7 /* key */
            aload 3 /* keyEncoding */
            aload 6 /* val */
            checkcast java.lang.String
            aload 8 /* valueEncoding */
            invokestatic org.jruby.util.OSEnvironment.putRubyKeyValuePair:(Lorg/jruby/Ruby;Ljava/util/Map;Ljava/lang/String;Lorg/jcodings/Encoding;Ljava/lang/String;Lorg/jcodings/Encoding;)V
        end local 8 // org.jcodings.Encoding valueEncoding
        end local 7 // java.lang.String key
        end local 6 // java.lang.Object val
        end local 4 // java.util.Map$Entry entry
        25: .line 103
      StackMap locals: org.jruby.Ruby java.util.Map java.util.Map org.jcodings.Encoding top java.util.Iterator
      StackMap stack:
            aload 5
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 12
        26: .line 125
            aload 2 /* rubyMap */
            areturn
        end local 3 // org.jcodings.Encoding keyEncoding
        end local 2 // java.util.Map rubyMap
        end local 1 // java.util.Map map
        end local 0 // org.jruby.Ruby runtime
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0   27     0        runtime  Lorg/jruby/Ruby;
            0   27     1            map  Ljava/util/Map<**>;
            1   27     2        rubyMap  Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;
            2   27     3    keyEncoding  Lorg/jcodings/Encoding;
            4   11     4           home  Ljava/lang/String;
            5   11     5           user  Ljava/lang/String;
           13   25     4          entry  Ljava/util/Map$Entry<**>;
           14   25     6            val  Ljava/lang/Object;
           16   25     7            key  Ljava/lang/String;
           20   25     8  valueEncoding  Lorg/jcodings/Encoding;
    Signature: (Lorg/jruby/Ruby;Ljava/util/Map<**>;)Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;
    MethodParameters:
         Name  Flags
      runtime  final
      map      final

  private static void putRubyKeyValuePair(org.jruby.Ruby, java.util.Map<org.jruby.RubyString, org.jruby.RubyString>, java.lang.String, org.jcodings.Encoding, java.lang.String, org.jcodings.Encoding);
    descriptor: (Lorg/jruby/Ruby;Ljava/util/Map;Ljava/lang/String;Lorg/jcodings/Encoding;Ljava/lang/String;Lorg/jcodings/Encoding;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=10, args_size=6
        start local 0 // org.jruby.Ruby runtime
        start local 1 // java.util.Map map
        start local 2 // java.lang.String key
        start local 3 // org.jcodings.Encoding keyEncoding
        start local 4 // java.lang.String value
        start local 5 // org.jcodings.Encoding valueEncoding
         0: .line 131
            aload 2 /* key */
            aload 3 /* keyEncoding */
            invokestatic org.jruby.RubyString.encodeBytelist:(Ljava/lang/CharSequence;Lorg/jcodings/Encoding;)Lorg/jruby/util/ByteList;
            astore 6 /* keyBytes */
        start local 6 // org.jruby.util.ByteList keyBytes
         1: .line 132
            aload 4 /* value */
            aload 5 /* valueEncoding */
            invokestatic org.jruby.RubyString.encodeBytelist:(Ljava/lang/CharSequence;Lorg/jcodings/Encoding;)Lorg/jruby/util/ByteList;
            astore 7 /* valueBytes */
        start local 7 // org.jruby.util.ByteList valueBytes
         2: .line 134
            aload 0 /* runtime */
            aload 6 /* keyBytes */
            invokevirtual org.jruby.Ruby.newString:(Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
            astore 8 /* keyString */
        start local 8 // org.jruby.RubyString keyString
         3: .line 135
            aload 0 /* runtime */
            aload 7 /* valueBytes */
            invokevirtual org.jruby.Ruby.newString:(Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
            astore 9 /* valueString */
        start local 9 // org.jruby.RubyString valueString
         4: .line 137
            aload 8 /* keyString */
            iconst_1
            invokevirtual org.jruby.RubyString.setFrozen:(Z)V
         5: .line 138
            aload 8 /* keyString */
            iconst_1
            invokevirtual org.jruby.RubyString.setTaint:(Z)V
         6: .line 139
            aload 9 /* valueString */
            iconst_1
            invokevirtual org.jruby.RubyString.setFrozen:(Z)V
         7: .line 140
            aload 9 /* valueString */
            iconst_1
            invokevirtual org.jruby.RubyString.setTaint:(Z)V
         8: .line 142
            aload 1 /* map */
            aload 8 /* keyString */
            aload 9 /* valueString */
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         9: .line 143
            return
        end local 9 // org.jruby.RubyString valueString
        end local 8 // org.jruby.RubyString keyString
        end local 7 // org.jruby.util.ByteList valueBytes
        end local 6 // org.jruby.util.ByteList keyBytes
        end local 5 // org.jcodings.Encoding valueEncoding
        end local 4 // java.lang.String value
        end local 3 // org.jcodings.Encoding keyEncoding
        end local 2 // java.lang.String key
        end local 1 // java.util.Map map
        end local 0 // org.jruby.Ruby runtime
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0   10     0        runtime  Lorg/jruby/Ruby;
            0   10     1            map  Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;
            0   10     2            key  Ljava/lang/String;
            0   10     3    keyEncoding  Lorg/jcodings/Encoding;
            0   10     4          value  Ljava/lang/String;
            0   10     5  valueEncoding  Lorg/jcodings/Encoding;
            1   10     6       keyBytes  Lorg/jruby/util/ByteList;
            2   10     7     valueBytes  Lorg/jruby/util/ByteList;
            3   10     8      keyString  Lorg/jruby/RubyString;
            4   10     9    valueString  Lorg/jruby/RubyString;
    Signature: (Lorg/jruby/Ruby;Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;Ljava/lang/String;Lorg/jcodings/Encoding;Ljava/lang/String;Lorg/jcodings/Encoding;)V
    MethodParameters:
               Name  Flags
      runtime        
      map            final
      key            
      keyEncoding    
      value          
      valueEncoding  
}
SourceFile: "OSEnvironment.java"
InnerClasses:
  public abstract Entry = java.util.Map$Entry of java.util.Map