Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

23
LINES

< > BotCompany Repo | #1011522 // compressedOOPSEnabled

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (7707L) is out of date.

1  
static bool compressedOOPSEnabled_is64bitHotSpot;
2  
static bool compressedOOPSEnabled_compressedOOPS;
3  
static bool compressedOOPSEnabled_checked;
4  
5  
sbool compressedOOPSEnabled() {
6  
  if (compressedOOPSEnabled_checked) ret compressedOOPSEnabled_compressedOOPS;
7  
  
8  
  S OS_ARCH = System.getProperty("os.arch");
9  
  S MANAGEMENT_FACTORY_CLASS = "java.lang.management.ManagementFactory";
10  
  S HOTSPOT_BEAN_CLASS = "com.sun.management.HotSpotDiagnosticMXBean";
11  
12  
  S x = System.getProperty("sun.arch.data.model");
13  
  bool is64Bit = contains(or(x, OS_ARCH), "64");
14  
    
15  
  if (is64Bit) {
16  
    compressedOOPSEnabled_is64bitHotSpot = true;
17  
    compressedOOPSEnabled_compressedOOPS =
18  
      !eq("false", getHotspotVMOption("UseCompressedOops"));
19  
  }
20  
  
21  
  compressedOOPSEnabled_checked = true;
22  
  ret compressedOOPSEnabled_compressedOOPS;
23  
}

Author comment

Began life as a copy of #1011521

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1011522
Snippet name: compressedOOPSEnabled
Eternal ID of this version: #1011522/6
Text MD5: fda0ce9be62b92884187d8af5d41d9c9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-11 19:56:14
Source code size: 837 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 457 / 572
Version history: 5 change(s)
Referenced in: [show references]