Transpiled version (7690L) is out of date.
1 | sO getHotspotVMOption(S optionName) { |
2 | pcall-short { |
3 | S MANAGEMENT_FACTORY_CLASS = "java.lang.management.ManagementFactory"; |
4 | S HOTSPOT_BEAN_CLASS = "com.sun.management.HotSpotDiagnosticMXBean"; |
5 | |
6 | Class<?> beanClazz = Class.forName(HOTSPOT_BEAN_CLASS); |
7 | O hotSpotBean = call(Class.forName(MANAGEMENT_FACTORY_CLASS), "getPlatformMXBean", beanClazz); |
8 | if (hotSpotBean == null) null; |
9 | O vmOption = call(hotSpotBean, "getVMOption", optionName); |
10 | ret call(vmOption, "getValue"); |
11 | } |
12 | |
13 | null; |
14 | } |
Began life as a copy of #1011522
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035193 |
Snippet name: | isHotspotVMOptionSet |
Eternal ID of this version: | #1035193/4 |
Text MD5: | 3aefa7fe4f264715b4feada60eb363c3 |
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:46:38 |
Source code size: | 527 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 144 / 220 |
Version history: | 3 change(s) |
Referenced in: | [show references] |