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

4
LINES

< > BotCompany Repo | #1029224 // inMemorySizeOfObjectArray

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

Libraryless. Click here for Pure Java version (2629L/17K).

1  
static long inMemorySizeOfObjectArray(int length) {
2  
  ret roundUpTo(javaDataModelWordSize(),
3  
    unsafe_sizeOf(_SimulatedArrayStub) + java_pointerSize()*((long) length));
4  
}

Author comment

Began life as a copy of #1022102

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029224
Snippet name: inMemorySizeOfObjectArray
Eternal ID of this version: #1029224/3
Text MD5: b084378d75cca5ce8c91867aa1dba5f1
Transpilation MD5: b2172bbe014954b29dcb51e177ba0d46
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-27 00:05:25
Source code size: 177 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 230 / 335
Version history: 2 change(s)
Referenced in: [show references]