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).

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

Author comment

Began life as a copy of #1022102

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, 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: 42 / 79
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1029224 & http://1029224.tinybrain.de